diff options
author | drh <> | 2024-04-06 18:30:09 +0000 |
---|---|---|
committer | drh <> | 2024-04-06 18:30:09 +0000 |
commit | 6951c4977976ddca0b9e4ce75e79fc69c44dfd77 (patch) | |
tree | 50b7d2e4c5e99706a66c4c419b748ad023944afe /src/select.c | |
parent | ed27183d835a0a3c4a2f17f9c3097d976aedc624 (diff) | |
download | sqlite-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.c | 2 |
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 ){ |