mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-23 00:48:54 +08:00
Factorize check on code returned by prepare/step.
This commit is contained in:
@@ -875,10 +875,7 @@ impl InnerConnection {
|
||||
&mut c_stmt,
|
||||
ptr::null_mut(),
|
||||
);
|
||||
if (rc & 0xFF) != ffi::SQLITE_LOCKED {
|
||||
break;
|
||||
}
|
||||
rc = unlock_notify::wait_for_unlock_notify(self.db);
|
||||
rc = unlock_notify::wait_for_unlock_notify(self.db, rc);
|
||||
if rc != ffi::SQLITE_OK {
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user