1
0
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:
drh
2007-10-17 01:44:20 +00:00
parent 51f015eb9c
commit f1bfe9a8bd
3 changed files with 11 additions and 10 deletions

View File

@@ -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;
}