mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Do not assume that "x IS NOT ?" implies "x NOT NULL" when considering partial indexes. Fix for ticket [8025674847].
FossilOrigin-Name: 0ba6d709b50d92db1542f2ff30535a80184b00dadf759d51e5cae7a6e37b1764
This commit is contained in:
@@ -4946,6 +4946,7 @@ int sqlite3ExprImpliesExpr(Parse *pParse, Expr *pE1, Expr *pE2, int iTab){
|
||||
if( pE2->op==TK_NOTNULL
|
||||
&& pE1->op!=TK_ISNULL
|
||||
&& pE1->op!=TK_IS
|
||||
&& pE1->op!=TK_ISNOT
|
||||
&& pE1->op!=TK_OR
|
||||
){
|
||||
Expr *pX = sqlite3ExprSkipCollate(pE1->pLeft);
|
||||
|
||||
Reference in New Issue
Block a user