diff options
author | dan <dan@noemail.net> | 2010-06-19 19:06:33 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-06-19 19:06:33 +0000 |
commit | c548b78310f1899f1d5ebcb95c25768f633a7194 (patch) | |
tree | e758fa7c7eec3a4753001fcca0f09f6f073ec4c3 /src/vdbeblob.c | |
parent | 8ce49d6ac0d238483a411145416187ff3cb15bf3 (diff) | |
download | sqlite-c548b78310f1899f1d5ebcb95c25768f633a7194.tar.gz sqlite-c548b78310f1899f1d5ebcb95c25768f633a7194.zip |
Fix an assert() failure that could occur if compiling with OMIT_SHARED_CACHE.
FossilOrigin-Name: 3e76a9f2c041a6d36614f540bb89588703d85925
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r-- | src/vdbeblob.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c index 829b6de6d..b2b9f0ed0 100644 --- a/src/vdbeblob.c +++ b/src/vdbeblob.c @@ -191,10 +191,14 @@ int sqlite3_blob_open( sqlite3VdbeUsesBtree(v, iDb); /* Configure the OP_TableLock instruction */ +#ifdef SQLITE_OMIT_SHARED_CACHE + sqlite3VdbeChangeToNoop(v, 2, 1); +#else sqlite3VdbeChangeP1(v, 2, iDb); sqlite3VdbeChangeP2(v, 2, pTab->tnum); sqlite3VdbeChangeP3(v, 2, flags); sqlite3VdbeChangeP4(v, 2, pTab->zName, P4_TRANSIENT); +#endif /* Remove either the OP_OpenWrite or OpenRead. Set the P2 ** parameter of the other to pTab->tnum. */ |