1
0
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:
drh
2014-01-04 16:49:02 +00:00
parent 54e2adb5f3
commit 61019c7883
7 changed files with 25 additions and 18 deletions

View File

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