aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2019-06-11 18:07:53 +0000
committerdrh <drh@noemail.net>2019-06-11 18:07:53 +0000
commit42be2ad30bad38f15a4c33956d6fe2b9c4b00989 (patch)
tree9fb2adb236d6982420d11e314b82fe9350cf53b5 /src/expr.c
parent2c3f46500fb8f1cb8dbd2d325719ebc77c02e0e5 (diff)
downloadsqlite-42be2ad30bad38f15a4c33956d6fe2b9c4b00989.tar.gz
sqlite-42be2ad30bad38f15a4c33956d6fe2b9c4b00989.zip
Make sure the affinity of the RHS of an IN operator does not affect the
outcome even if the RHS expression contains a COLLATE clause. Ticket [57353f8243c637c0] FossilOrigin-Name: 0f748fe58bbbb7ce3f30303da25ec811b2bbce249549aa9c7927979ac5b38013
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index 4e8251bd8..f69b2a621 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -44,8 +44,8 @@ char sqlite3TableColumnAffinity(Table *pTab, int iCol){
*/
char sqlite3ExprAffinity(Expr *pExpr){
int op;
- pExpr = sqlite3ExprSkipCollate(pExpr);
if( pExpr->flags & EP_Generic ) return 0;
+ pExpr = sqlite3ExprSkipCollate(pExpr);
op = pExpr->op;
if( op==TK_SELECT ){
assert( pExpr->flags&EP_xIsSelect );