aboutsummaryrefslogtreecommitdiff
path: root/src/delete.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-02-07 19:44:13 +0000
committerdrh <drh@noemail.net>2020-02-07 19:44:13 +0000
commitdc4f6fc099b3fd2476f95286503985f1a22370bc (patch)
tree4270e12b34467a53fe7bffd2462bd572db57201c /src/delete.c
parentb48c0d59faf3bfd3e1fc0c3bed5557816c36cb7e (diff)
downloadsqlite-dc4f6fc099b3fd2476f95286503985f1a22370bc.tar.gz
sqlite-dc4f6fc099b3fd2476f95286503985f1a22370bc.zip
During byte-code generation, strive to avoid jumps that merely jump to the
following instruction. FossilOrigin-Name: bcf876e67e75f6709f2b25683a3952bbbb87c672bb9d7af456feebc0ab9f6c31
Diffstat (limited to 'src/delete.c')
-rw-r--r--src/delete.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/delete.c b/src/delete.c
index 0a83f1b64..60efc9d56 100644
--- a/src/delete.c
+++ b/src/delete.c
@@ -533,7 +533,9 @@ void sqlite3DeleteFrom(
iTabCur, aToOpen, &iDataCur, &iIdxCur);
assert( pPk || IsVirtual(pTab) || iDataCur==iTabCur );
assert( pPk || IsVirtual(pTab) || iIdxCur==iDataCur+1 );
- if( eOnePass==ONEPASS_MULTI ) sqlite3VdbeJumpHere(v, iAddrOnce);
+ if( eOnePass==ONEPASS_MULTI ){
+ sqlite3VdbeJumpHereOrPopInst(v, iAddrOnce);
+ }
}
/* Set up a loop over the rowids/primary-keys that were found in the