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

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

Ticket [a6408d42b9f44462]

FossilOrigin-Name: 45ff2b1f2693bb0231a864a511bb82cf2a5945ab3d806a5bbaf1517ecb287883
This commit is contained in:
drh
2019-08-30 13:07:06 +00:00
parent f4d9c9822d
commit 38cefc83c8
4 changed files with 20 additions and 9 deletions

View File

@@ -5036,7 +5036,7 @@ static int exprImpliesNotNull(
case TK_TRUTH: {
if( seenNot ) return 0;
if( p->op2!=TK_IS ) return 0;
return exprImpliesNotNull(pParse, p->pLeft, pNN, iTab, seenNot);
return exprImpliesNotNull(pParse, p->pLeft, pNN, iTab, 1);
}
case TK_BITNOT:
case TK_NOT: {