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
diff --git a/src/expr.c b/src/expr.c
index 5180044..6516348 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -5018,6 +5018,7 @@
if( ExprHasProperty(pExpr, EP_FromJoin) ) return WRC_Prune;
switch( pExpr->op ){
+ case TK_NOT:
case TK_ISNULL:
case TK_IS:
case TK_OR: