mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-31 19:12:58 +08:00
Simplify code
This commit is contained in:
parent
f6dd9c3a2c
commit
25787021b7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user