aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2016-03-08 00:39:58 +0000
committerdrh <drh@noemail.net>2016-03-08 00:39:58 +0000
commitfb826b8c13d10fbabfd83301979c9779bc8fe8b3 (patch)
tree76b7640d937fc1f435a021f66317d73991683d22 /src/wherecode.c
parent108b7953ed1ec8b434edcd3764bed457fedab4bd (diff)
downloadsqlite-fb826b8c13d10fbabfd83301979c9779bc8fe8b3.tar.gz
sqlite-fb826b8c13d10fbabfd83301979c9779bc8fe8b3.zip
Changes so that some assert()s in the virtual table query planner are
correct even following an OOM error. FossilOrigin-Name: 9805f6f85211dcb5a0ab3ceca204e6f2e48530ea
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 1f5a324ec..4c0878a5a 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -915,7 +915,7 @@ Bitmask sqlite3WhereCodeOneLoopStart(
** the xFilter implementation might have changed the datatype or
** encoding of the value in the register, so it *must* be reloaded. */
assert( pLevel->u.in.aInLoop!=0 || db->mallocFailed );
- if( pLevel->u.in.aInLoop!=0 ){
+ if( !db->mallocFailed ){
assert( iIn>0 );
pOp = sqlite3VdbeGetOp(v, pLevel->u.in.aInLoop[--iIn].addrInTop);
assert( pOp->opcode==OP_Column || pOp->opcode==OP_Rowid );