diff options
author | drh <drh@noemail.net> | 2009-02-20 03:55:05 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2009-02-20 03:55:05 +0000 |
commit | 08de14908d354c34206db249807703683e84676a (patch) | |
tree | e9ee637fd892230952aeecb9638f32713c26b7b1 /src/vdbeblob.c | |
parent | 5053a79b6ce3fde5f832a0af9206571e7aca19bd (diff) | |
download | sqlite-08de14908d354c34206db249807703683e84676a.tar.gz sqlite-08de14908d354c34206db249807703683e84676a.zip |
Add a count parameter to the OP_Variable opcode and use it to simplify
prepared statements that copy consecutive unnamed parameters into
consecutive registers (a common case). (CVS 6309)
FossilOrigin-Name: 48b77b04935d8942eb22f0c061f3bc5e99bbd7db
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r-- | src/vdbeblob.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c index 9afeb11c0..0fccada5a 100644 --- a/src/vdbeblob.c +++ b/src/vdbeblob.c @@ -12,7 +12,7 @@ ** ** This file contains code used to implement incremental BLOB I/O. ** -** $Id: vdbeblob.c,v 1.26 2008/10/02 14:49:02 danielk1977 Exp $ +** $Id: vdbeblob.c,v 1.27 2009/02/20 03:55:05 drh Exp $ */ #include "sqliteInt.h" @@ -75,7 +75,7 @@ int sqlite3_blob_open( {OP_SetNumColumns, 0, 0, 0}, /* 4: Num cols for cursor */ {OP_OpenWrite, 0, 0, 0}, /* 5: Open cursor 0 for read/write */ - {OP_Variable, 1, 1, 0}, /* 6: Push the rowid to the stack */ + {OP_Variable, 1, 1, 1}, /* 6: Push the rowid to the stack */ {OP_NotExists, 0, 10, 1}, /* 7: Seek the cursor */ {OP_Column, 0, 0, 1}, /* 8 */ {OP_ResultRow, 1, 0, 0}, /* 9 */ |