diff options
author | drh <drh@noemail.net> | 2012-05-14 12:20:54 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2012-05-14 12:20:54 +0000 |
commit | 74ea19b489a9590232d60aa5efa90da6bfe4cc17 (patch) | |
tree | 3682e147bbf7533f9d781c590258b3707726b3e5 /src | |
parent | 8aba2209925e6a96ef5c2988ed1a6261d41279cd (diff) | |
download | sqlite-74ea19b489a9590232d60aa5efa90da6bfe4cc17.tar.gz sqlite-74ea19b489a9590232d60aa5efa90da6bfe4cc17.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/prepare.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/prepare.c b/src/prepare.c index faeefa894..c46e55ed2 100644 --- a/src/prepare.c +++ b/src/prepare.c @@ -706,6 +706,7 @@ static int sqlite3LockAndPrepare( } sqlite3BtreeLeaveAll(db); sqlite3_mutex_leave(db->mutex); + assert( rc==SQLITE_OK || *ppStmt==0 ); return rc; } |