aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-12-09 13:02:13 +0000
committerdrh <>2024-12-09 13:02:13 +0000
commitc29bc733beaff046e231db7681197df726657acc (patch)
treeaf1f38ed2bd7ac75e40c4e076fdbb9228824fa70 /src
parent54f96dc50e8e9cf97e83284a4291a6016083a9e1 (diff)
downloadsqlite-c29bc733beaff046e231db7681197df726657acc.tar.gz
sqlite-c29bc733beaff046e231db7681197df726657acc.zip
Add NEVER() around branches that seems to have been made obsolete by
[a350ea7c6b89725b]. FossilOrigin-Name: cb5bad5c748b7435c43f3ec051736c1cf91ced2be317b0519e5e22523c137290
Diffstat (limited to 'src')
-rw-r--r--src/where.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/where.c b/src/where.c
index 5abb40ece..20ebaa8cd 100644
--- a/src/where.c
+++ b/src/where.c
@@ -839,7 +839,7 @@ static int constraintCompatibleWithOuterJoin(
return 0;
}
if( (pSrc->fg.jointype & (JT_LEFT|JT_RIGHT))!=0
- && ExprHasProperty(pTerm->pExpr, EP_InnerON)
+ && NEVER(ExprHasProperty(pTerm->pExpr, EP_InnerON))
){
return 0;
}
@@ -6224,7 +6224,7 @@ static SQLITE_NOINLINE Bitmask whereOmitNoopJoin(
}
if( hasRightJoin
&& ExprHasProperty(pTerm->pExpr, EP_InnerON)
- && pTerm->pExpr->w.iJoin==pItem->iCursor
+ && NEVER(pTerm->pExpr->w.iJoin==pItem->iCursor)
){
break; /* restriction (5) */
}