diff options
author | drh <drh@noemail.net> | 2016-11-22 01:26:42 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-11-22 01:26:42 +0000 |
commit | 65f38d960d22370c45e67ca9557f26f3e0e9356c (patch) | |
tree | cb9cb7804ce6e099fb91e7faa8b65d074b558006 /src/delete.c | |
parent | 60ffc80756f9a48f6ce260437dcf4140364c2ff4 (diff) | |
download | sqlite-65f38d960d22370c45e67ca9557f26f3e0e9356c.tar.gz sqlite-65f38d960d22370c45e67ca9557f26f3e0e9356c.zip |
Remove unnecessary OP_Close opcodes for a size reduction and performance
increase.
FossilOrigin-Name: 32be7aae92ee48bf2cd260ea41e79c2bc62738f9
Diffstat (limited to 'src/delete.c')
-rw-r--r-- | src/delete.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/delete.c b/src/delete.c index e16e9485b..46af65a36 100644 --- a/src/delete.c +++ b/src/delete.c @@ -538,14 +538,6 @@ void sqlite3DeleteFrom( sqlite3VdbeGoto(v, addrLoop); sqlite3VdbeJumpHere(v, addrLoop); } - - /* Close the cursors open on the table and its indexes. */ - if( !isView && !IsVirtual(pTab) ){ - if( !pPk ) sqlite3VdbeAddOp1(v, OP_Close, iDataCur); - for(i=0, pIdx=pTab->pIndex; pIdx; i++, pIdx=pIdx->pNext){ - sqlite3VdbeAddOp1(v, OP_Close, iIdxCur + i); - } - } } /* End non-truncate path */ /* Update the sqlite_sequence table by storing the content of the |