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

Fix a problem causing the LEFT JOIN strength reduction optimization to be

incorrectly applied in some cases where the WHERE clause of the query contains
a filter expression of the form NOT(x AND y). Ticket [1e39b966].

FossilOrigin-Name: 38d319c153641ea4138fab2d5a47c31a86f57a071a1e1c299ca54c980cfb2b60
This commit is contained in:
dan
2018-04-10 12:10:01 +00:00
parent a2ce1b99a8
commit a1054dcc3f
4 changed files with 15 additions and 9 deletions

View File

@@ -5018,6 +5018,7 @@ static int impliesNotNullRow(Walker *pWalker, Expr *pExpr){
if( ExprHasProperty(pExpr, EP_FromJoin) ) return WRC_Prune;
switch( pExpr->op ){
case TK_NOT:
case TK_ISNULL:
case TK_IS:
case TK_OR: