aboutsummaryrefslogtreecommitdiff
path: root/src/whereexpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/whereexpr.c')
-rw-r--r--src/whereexpr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/whereexpr.c b/src/whereexpr.c
index e3c02deac..9029ff181 100644
--- a/src/whereexpr.c
+++ b/src/whereexpr.c
@@ -1215,11 +1215,9 @@ static void exprAnalyzeExists(
if( pInLhs==pEq->pLeft ){
pRet = pEq->pRight;
}else{
+ CollSeq *p = sqlite3ExprCompareCollSeq(pParse, pEq);
+ pInLhs = sqlite3ExprAddCollateString(pParse, pInLhs, p?p->zName:"BINARY");
pRet = pEq->pLeft;
- if( pRet->op!=TK_VECTOR ){
- CollSeq *p = sqlite3ExprCompareCollSeq(pParse, pEq);
- pInLhs = sqlite3ExprAddCollateString(pParse, pInLhs, p?p->zName:"BINARY");
- }
}
assert( pDup->pLeft==0 );