aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index 3902c24f9..6617b6039 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -2624,12 +2624,9 @@ Bitmask sqlite3WhereCodeOneLoopStart(
/* Defer processing WHERE clause constraints until after outer
** join processing. tag-20220513a */
continue;
- }else{
- Bitmask m = sqlite3WhereGetMask(&pWInfo->sMaskSet, pE->w.iJoin);
- if( m & pLevel->notReady ){
- /* An ON clause that is not ripe */
- continue;
- }
+ }else if( (pTabItem->fg.jointype & JT_LEFT)==JT_LEFT
+ && !ExprHasProperty(pE,EP_OuterON) ){
+ continue;
}
}
if( iLoop==1 && !sqlite3ExprCoveredByIndex(pE, pLevel->iTabCur, pIdx) ){