mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Reorder some tests at the beginning of sqlite3_step() to work around
misuse by python. Ticket #2732. (CVS 4492) FossilOrigin-Name: e8d591e8c369794921a4acbba5b17fddca730ee7
This commit is contained in:
@@ -255,13 +255,14 @@ static int sqlite3Step(Vdbe *p){
|
||||
sqlite3 *db;
|
||||
int rc;
|
||||
|
||||
if( p==0 || p->magic!=VDBE_MAGIC_RUN ){
|
||||
return SQLITE_MISUSE;
|
||||
}
|
||||
|
||||
/* Assert that malloc() has not failed */
|
||||
db = p->db;
|
||||
assert( !db->mallocFailed );
|
||||
|
||||
if( p==0 || p->magic!=VDBE_MAGIC_RUN ){
|
||||
return SQLITE_MISUSE;
|
||||
}
|
||||
if( p->aborted ){
|
||||
return SQLITE_ABORT;
|
||||
}
|
||||
|
Reference in New Issue
Block a user