aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2024-06-10 19:45:33 +0000
committerdan <Dan Kennedy>2024-06-10 19:45:33 +0000
commitdf77e56cdeeb46fab3deb9ded4d5c0e873f57ee9 (patch)
treed2ab383d422f585c186a7c83ae532c1edb1e42fb /src/select.c
parentdc9a262319d734b9a8023e34ded1f426459766bd (diff)
downloadsqlite-df77e56cdeeb46fab3deb9ded4d5c0e873f57ee9.tar.gz
sqlite-df77e56cdeeb46fab3deb9ded4d5c0e873f57ee9.zip
Add missing calls to sqlite3exprSkipCollateAndLikely() to the enchancement on this branch.
FossilOrigin-Name: 078537d057d638389e3ab3bc04bcac53f342c7bf1d8d75222296ef42d09e9ee7
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/select.c b/src/select.c
index ac8b1b6ae..69a07528f 100644
--- a/src/select.c
+++ b/src/select.c
@@ -7332,8 +7332,8 @@ static u64 findConstIdxTerms(
m = findConstIdxTerms(pParse, iCsr, pIdx, pWhere->pLeft);
m |= findConstIdxTerms(pParse, iCsr, pIdx, pWhere->pRight);
}else if( pWhere->op==TK_EQ ){
- Expr *pLeft = pWhere->pLeft;
- Expr *pRight = pWhere->pRight;
+ Expr *pLeft = sqlite3ExprSkipCollateAndLikely(pWhere->pLeft);
+ Expr *pRight = sqlite3ExprSkipCollateAndLikely(pWhere->pRight);
if( pRight->op==TK_COLUMN && pRight->iTable==iCsr ){
SWAP(Expr*, pLeft, pRight);
}