mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +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:
@@ -790,9 +790,7 @@ int sqlite3GenerateIndexKey(
|
||||
** But we are getting ready to store this value back into an index, where
|
||||
** it should be converted by to INTEGER again. So omit the OP_RealAffinity
|
||||
** opcode if it is present */
|
||||
if( sqlite3VdbeGetOp(v, -1)->opcode==OP_RealAffinity ){
|
||||
sqlite3VdbeDeleteLastOpcode(v);
|
||||
}
|
||||
sqlite3VdbeDeletePriorOpcode(v, OP_RealAffinity);
|
||||
}
|
||||
if( regOut ){
|
||||
sqlite3VdbeAddOp3(v, OP_MakeRecord, regBase, nCol, regOut);
|
||||
|
||||
Reference in New Issue
Block a user