aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-08-25 19:20:04 +0000
committerdrh <drh@noemail.net>2015-08-25 19:20:04 +0000
commite91076981782e96e4c9acb79cff227f19a6425ae (patch)
tree78275b9e0c191c134306476159c4fe5c3eca3c89 /src/wherecode.c
parentf8febc1b052ae908f1f95789bc1a630e9fd5666d (diff)
downloadsqlite-e91076981782e96e4c9acb79cff227f19a6425ae.tar.gz
sqlite-e91076981782e96e4c9acb79cff227f19a6425ae.zip
Use the sqlite3IndexColumnAffinity() routine to quickly and correctly find the
affinity of an index column. FossilOrigin-Name: 1ee089a72d789002a0a377347fc51e08ab32fb14
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index eb23d8f1a..e5c0b40b1 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -492,7 +492,7 @@ static int codeAllEqualityTerms(
nReg = pLoop->u.btree.nEq + nExtraReg;
pParse->nMem += nReg;
- zAff = sqlite3DbStrDup(pParse->db, sqlite3IndexAffinityStr(v, pIdx));
+ zAff = sqlite3DbStrDup(pParse->db,sqlite3IndexAffinityStr(pParse->db,pIdx));
if( !zAff ){
pParse->db->mallocFailed = 1;
}