1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

The expression "(X IS FALSE) IN (FALSE)" does not imply that X is NOT NULL.

Ticket [f8f472cbc77ba9c9]

FossilOrigin-Name: dd66134817ecbda01c59a05ad0d6ac44bee700ab10cd2119c869dd69af293fe2
This commit is contained in:
drh
2019-08-30 16:00:58 +00:00
parent 7a231b4973
commit ae144a1c9f
4 changed files with 14 additions and 9 deletions

View File

@@ -4995,7 +4995,7 @@ static int exprImpliesNotNull(
if( seenNot && ExprHasProperty(p, EP_xIsSelect) ) return 0;
assert( ExprHasProperty(p,EP_xIsSelect)
|| (p->x.pList!=0 && p->x.pList->nExpr>0) );
return exprImpliesNotNull(pParse, p->pLeft, pNN, iTab, seenNot);
return exprImpliesNotNull(pParse, p->pLeft, pNN, iTab, 1);
}
case TK_BETWEEN: {
ExprList *pList = p->x.pList;