aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeblob.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-09-16 01:34:43 +0000
committerdrh <drh@noemail.net>2011-09-16 01:34:43 +0000
commit48f2d3b10a5ac48ae2a1a24f77c7cb1aab6ea978 (patch)
tree0b02d36b1ecb60c458133c090c14df3c131b6151 /src/vdbeblob.c
parent5b6a9ed49556deac6d48be80b6ef2816102f1951 (diff)
downloadsqlite-48f2d3b10a5ac48ae2a1a24f77c7cb1aab6ea978.tar.gz
sqlite-48f2d3b10a5ac48ae2a1a24f77c7cb1aab6ea978.zip
Add the new OP_Once opcode. Use it to clean up and simplify various
one-time initialization sections in the code, including the fix for ticket [002caede898ae]. FossilOrigin-Name: 7f00552b739fad79517b042a6ed61abe743a917b
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r--src/vdbeblob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c
index a8728e6d2..ae77a47ba 100644
--- a/src/vdbeblob.c
+++ b/src/vdbeblob.c
@@ -273,7 +273,7 @@ int sqlite3_blob_open(
/* Configure the OP_TableLock instruction */
#ifdef SQLITE_OMIT_SHARED_CACHE
- sqlite3VdbeChangeToNoop(v, 2, 1);
+ sqlite3VdbeChangeToNoop(v, 2);
#else
sqlite3VdbeChangeP1(v, 2, iDb);
sqlite3VdbeChangeP2(v, 2, pTab->tnum);
@@ -283,7 +283,7 @@ int sqlite3_blob_open(
/* Remove either the OP_OpenWrite or OpenRead. Set the P2
** parameter of the other to pTab->tnum. */
- sqlite3VdbeChangeToNoop(v, 4 - flags, 1);
+ sqlite3VdbeChangeToNoop(v, 4 - flags);
sqlite3VdbeChangeP2(v, 3 + flags, pTab->tnum);
sqlite3VdbeChangeP3(v, 3 + flags, iDb);