diff options
author | drh <drh@noemail.net> | 2014-02-08 01:40:27 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-02-08 01:40:27 +0000 |
commit | aceb31b1205c01e933619b05a5f11b0280e2faed (patch) | |
tree | 3503d2ab689ef8186eb3f12dbc6b829ca2b93dac /src/insert.c | |
parent | 642364a48b21341a5b23ef9b0cc771cba4f2d7c2 (diff) | |
download | sqlite-aceb31b1205c01e933619b05a5f11b0280e2faed.tar.gz sqlite-aceb31b1205c01e933619b05a5f11b0280e2faed.zip |
Change the OP_Trace opcode to OP_Init and give it the ability to jump to the
initialization code at the bottom of the program, thus avoiding the need for
an extra OP_Goto.
FossilOrigin-Name: 192dea97316144f15f6dd0eabff08a0bf9ef203e
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c index 5dbdf9108..bd15832ac 100644 --- a/src/insert.c +++ b/src/insert.c @@ -2038,7 +2038,7 @@ static int xferOptimization( sqlite3VdbeAddOp2(v, OP_Close, iSrc, 0); sqlite3VdbeAddOp2(v, OP_Close, iDest, 0); } - sqlite3VdbeJumpHere(v, emptySrcTest); + if( emptySrcTest ) sqlite3VdbeJumpHere(v, emptySrcTest); sqlite3ReleaseTempReg(pParse, regRowid); sqlite3ReleaseTempReg(pParse, regData); if( emptyDestTest ){ |