aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeblob.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-10-24 19:05:26 +0000
committerdrh <drh@noemail.net>2017-10-24 19:05:26 +0000
commite2f3b671ede82824286668f9143d864b27fcdfcb (patch)
treed0dde42306db50f44b83c7b8f58c844a73ac03a9 /src/vdbeblob.c
parent0295774ca0d2d33c7644688be3624433e29ab84b (diff)
parent39f2b329f6513b6901afb461b57674a109e934ff (diff)
downloadsqlite-e2f3b671ede82824286668f9143d864b27fcdfcb.tar.gz
sqlite-e2f3b671ede82824286668f9143d864b27fcdfcb.zip
Merge all of the fixes from the 3.21.0 release.
FossilOrigin-Name: 5ab662b443df17c5ebdadc0bdac2f447c5c7e86f7a32a6943bb4ac8605879441
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r--src/vdbeblob.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c
index 16a2c0f36..427979269 100644
--- a/src/vdbeblob.c
+++ b/src/vdbeblob.c
@@ -63,11 +63,12 @@ static int blobSeekToRow(Incrblob *p, sqlite3_int64 iRow, char **pzErr){
v->aMem[1].u.i = iRow;
/* If the statement has been run before (and is paused at the OP_ResultRow)
- ** then back it up to the point where it does the OP_SeekRowid. This could
+ ** then back it up to the point where it does the OP_NotExists. This could
** have been down with an extra OP_Goto, but simply setting the program
** counter is faster. */
- if( v->pc>3 ){
- v->pc = 3;
+ if( v->pc>4 ){
+ v->pc = 4;
+ assert( v->aOp[v->pc].opcode==OP_NotExists );
rc = sqlite3VdbeExec(v);
}else{
rc = sqlite3_step(p->pStmt);