1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Remove an incorrect ALWAYS() from the automatic index generator.

FossilOrigin-Name: eeb4bd06bf69e411736cc6077d1d64af6bd8fb09
This commit is contained in:
drh
2015-04-15 07:34:25 +00:00
parent 1b6789697d
commit 29031837c1
4 changed files with 16 additions and 9 deletions

View File

@@ -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++;
}
}