Fix errors relative to OpenFlags

Also handle extended error codes.
This commit is contained in:
gwenn
2018-03-24 10:15:10 +01:00
parent 5fd76aa54b
commit c612a44207
3 changed files with 10 additions and 9 deletions

View File

@@ -875,7 +875,7 @@ impl InnerConnection {
&mut c_stmt,
ptr::null_mut(),
);
if rc != ffi::SQLITE_LOCKED {
if (rc & 0xFF) != ffi::SQLITE_LOCKED {
break;
}
rc = unlock_notify::wait_for_unlock_notify(self.db);