aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-04-15 07:34:25 +0000
committerdrh <drh@noemail.net>2015-04-15 07:34:25 +0000
commit29031837c19e371ae6056e2dc3efb03f3f7895b4 (patch)
treef567988b4fde7d0a714218aadb3c39be56dd2cb5 /src
parent1b6789697d13ab232b99f8064b0d106c6b5184a0 (diff)
downloadsqlite-29031837c19e371ae6056e2dc3efb03f3f7895b4.tar.gz
sqlite-29031837c19e371ae6056e2dc3efb03f3f7895b4.zip
Remove an incorrect ALWAYS() from the automatic index generator.
FossilOrigin-Name: eeb4bd06bf69e411736cc6077d1d64af6bd8fb09
Diffstat (limited to 'src')
-rw-r--r--src/where.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/where.c b/src/where.c
index e1c5f4eca..3467a6862 100644
--- a/src/where.c
+++ b/src/where.c
@@ -1806,7 +1806,7 @@ static void constructAutomaticIndex(
idxCols |= cMask;
pIdx->aiColumn[n] = pTerm->u.leftColumn;
pColl = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight);
- pIdx->azColl[n] = ALWAYS(pColl) ? pColl->zName : "BINARY";
+ pIdx->azColl[n] = pColl ? pColl->zName : "BINARY";
n++;
}
}