diff options
author | drh <drh@noemail.net> | 2015-04-15 04:20:58 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-04-15 04:20:58 +0000 |
commit | 311efc70a74a01d22b4d90c87490cda41b0b110a (patch) | |
tree | 1d671c67dafd43302537a9c5b4266f68355bc3c8 /src/expr.c | |
parent | 126a6e260cda6446d509897d2a32097a5e63dad3 (diff) | |
download | sqlite-311efc70a74a01d22b4d90c87490cda41b0b110a.tar.gz sqlite-311efc70a74a01d22b4d90c87490cda41b0b110a.zip |
Add a test case for what was formerly thought to be an unreachable condition:
when the LHS of an OR operator contains an error and the RHS contains an IN
operator.
FossilOrigin-Name: 3872742591add4e94033484c2844e7d7ab69674b
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index e6ac0f679..6a30755aa 100644 --- a/src/expr.c +++ b/src/expr.c @@ -1691,7 +1691,7 @@ int sqlite3FindInIndex(Parse *pParse, Expr *pX, u32 inFlags, int *prRhsHasNull){ ** ephemeral table. */ p = (ExprHasProperty(pX, EP_xIsSelect) ? pX->x.pSelect : 0); - if( ALWAYS(pParse->nErr==0) && isCandidateForInOpt(p) ){ + if( pParse->nErr==0 && isCandidateForInOpt(p) ){ sqlite3 *db = pParse->db; /* Database connection */ Table *pTab; /* Table <table>. */ Expr *pExpr; /* Expression <column> */ |