diff options
author | drh <drh@noemail.net> | 2019-10-22 19:51:29 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2019-10-22 19:51:29 +0000 |
commit | db36e255d5f7162f6abcdfcafeca4f22668e139c (patch) | |
tree | 89518473318e6387c89d5a876b9dcc10a87733d9 /src/expr.c | |
parent | 98c94e60d0b6a59c63cb0618be8307d34e3b97a6 (diff) | |
download | sqlite-db36e255d5f7162f6abcdfcafeca4f22668e139c.tar.gz sqlite-db36e255d5f7162f6abcdfcafeca4f22668e139c.zip |
Disqualify row-value comparisons for use by an index if the right-hand side
has an affinity that does not match the index.
Fix for ticket [6ef984af8972c2eb]
FossilOrigin-Name: 5c118617cf08e17a6edfdfba86e3fc49132a780990b68b52724c2aaeac85f506
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/expr.c b/src/expr.c index 7e80796f4..4a5c2d0ff 100644 --- a/src/expr.c +++ b/src/expr.c @@ -70,6 +70,9 @@ char sqlite3ExprAffinity(Expr *pExpr){ pExpr->pLeft->x.pSelect->pEList->a[pExpr->iColumn].pExpr ); } + if( op==TK_VECTOR ){ + return sqlite3ExprAffinity(pExpr->x.pList->a[0].pExpr); + } return pExpr->affExpr; } |