diff options
author | drh <drh@noemail.net> | 2014-03-20 19:04:56 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-03-20 19:04:56 +0000 |
commit | 5b1420e046aaf2aa3043fa1725b0ae57abe1578a (patch) | |
tree | e1de0cf6e9ab2a763a475e328bc8bf7d989e9469 /src/expr.c | |
parent | 8ad0de3f725e9d32d624d3102f4e1b75780e7ee6 (diff) | |
download | sqlite-5b1420e046aaf2aa3043fa1725b0ae57abe1578a.tar.gz sqlite-5b1420e046aaf2aa3043fa1725b0ae57abe1578a.zip |
Remove a testcase() that is now always true due to the "x IN (?)" optimization.
Add an ALWAYS() around a conditional in the parser that cannot be false.
FossilOrigin-Name: d5a1530bdc7ace053d05d1a037551110021d3758
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index 204d69617..e3997f00c 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1636,7 +1636,6 @@ int sqlite3FindInIndex(Parse *pParse, Expr *pX, int *prNotFound){ *prNotFound = rMayHaveNull = ++pParse->nMem; sqlite3VdbeAddOp2(v, OP_Null, 0, *prNotFound); }else{ - testcase( pParse->nQueryLoop>0 ); pParse->nQueryLoop = 0; if( pX->pLeft->iColumn<0 && !ExprHasProperty(pX, EP_xIsSelect) ){ eType = IN_INDEX_ROWID; |