mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
Fix an assert() that may fail if sqlite3_step() is called on a statement after a previous call has already returned SQLITE_SCHEMA.
FossilOrigin-Name: 63bf73452de5a9d03e625e1888444a5355063b74
This commit is contained in:
@@ -304,7 +304,7 @@ static int sqlite3Step(Vdbe *p){
|
||||
}
|
||||
|
||||
if( p->pc<=0 && p->expired ){
|
||||
if( ALWAYS(p->rc==SQLITE_OK) ){
|
||||
if( ALWAYS(p->rc==SQLITE_OK || p->rc==SQLITE_SCHEMA) ){
|
||||
p->rc = SQLITE_SCHEMA;
|
||||
}
|
||||
rc = SQLITE_ERROR;
|
||||
|
Reference in New Issue
Block a user