Simplify code

This commit is contained in:
gwenn 2024-03-28 21:03:42 +01:00
parent f6dd9c3a2c
commit 25787021b7

View File

@ -73,9 +73,7 @@ impl InnerConnection {
// turn on extended results code before opening database to have a better diagnostic if a failure happens
let exrescode = if version_number() >= 3_037_000 {
if !flags.contains(OpenFlags::SQLITE_OPEN_EXRESCODE) {
flags |= OpenFlags::SQLITE_OPEN_EXRESCODE;
}
flags |= OpenFlags::SQLITE_OPEN_EXRESCODE;
true
} else {
false // flag SQLITE_OPEN_EXRESCODE is ignored by SQLite version < 3.37.0