mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-04 20:02:48 +03:00
Omit OP_Close operations that occur immediately prior to OP_Halt and which
cannot be jumped over. FossilOrigin-Name: 874b7e9999811c288ad41d07709f88e458d2d497
This commit is contained in:
@@ -140,6 +140,7 @@ void sqlite3FinishCoding(Parse *pParse){
|
||||
assert( !pParse->isMultiWrite
|
||||
|| sqlite3VdbeAssertMayAbort(v, pParse->mayAbort));
|
||||
if( v ){
|
||||
while( sqlite3VdbeDeletePriorOpcode(v, OP_Close) ){}
|
||||
sqlite3VdbeAddOp0(v, OP_Halt);
|
||||
|
||||
/* The cookie mask contains one bit for each database file open.
|
||||
|
||||
Reference in New Issue
Block a user