mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Add an assert() that verifies that the statement pointer from
the sqlite3_prepare() family of functions is always NULL if the routines return other than SQLITE_OK. FossilOrigin-Name: 0bb1cfc63f982db7b29c8e6be6698a6dad100f70
This commit is contained in:
@@ -706,6 +706,7 @@ static int sqlite3LockAndPrepare(
|
||||
}
|
||||
sqlite3BtreeLeaveAll(db);
|
||||
sqlite3_mutex_leave(db->mutex);
|
||||
assert( rc==SQLITE_OK || *ppStmt==0 );
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user