aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authordrh <>2024-04-06 18:30:09 +0000
committerdrh <>2024-04-06 18:30:09 +0000
commit6951c4977976ddca0b9e4ce75e79fc69c44dfd77 (patch)
tree50b7d2e4c5e99706a66c4c419b748ad023944afe /src/select.c
parented27183d835a0a3c4a2f17f9c3097d976aedc624 (diff)
downloadsqlite-6951c4977976ddca0b9e4ce75e79fc69c44dfd77.tar.gz
sqlite-6951c4977976ddca0b9e4ce75e79fc69c44dfd77.zip
Do not allow changes to sqlite3ExprIsTableConstant() that support pushdown of
subqueries interfere with the hash-join logic. FossilOrigin-Name: 8682931f9c6b40e1b09139c10bbe932c38330b5eb0c5c84f2432ad19a6793e37
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c
index b20051851..b13aae1f9 100644
--- a/src/select.c
+++ b/src/select.c
@@ -5260,7 +5260,7 @@ static int pushDownWhereTerms(
}
#endif
- if( sqlite3ExprIsSingleTableConstraint(pWhere, pSrcList, iSrc) ){
+ if( sqlite3ExprIsSingleTableConstraint(pWhere, pSrcList, iSrc, 1) ){
nChng++;
pSubq->selFlags |= SF_PushDown;
while( pSubq ){