Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add an ALWAYS() around a always-true test in where.c. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8123283ee1a360586a1721a56b4db157 |
User & Date: | drh 2011-02-17 13:33:15.650 |
Context
2011-02-17
| ||
13:52 | Remove an assert() that was made redundant by the previous checkin. (check-in: 21db719156 user: drh tags: trunk) | |
13:33 | Add an ALWAYS() around a always-true test in where.c. (check-in: 8123283ee1 user: drh tags: trunk) | |
2011-02-16
| ||
23:32 | Fix harmless compiler warnings in the query planner. (check-in: 31fc4ba66e user: drh tags: trunk) | |
Changes
Changes to src/where.c.
︙ | ︙ | |||
1889 1890 1891 1892 1893 1894 1895 | Bitmask cMask = iCol>=BMS ? ((Bitmask)1)<<(BMS-1) : ((Bitmask)1)<<iCol; if( (idxCols & cMask)==0 ){ Expr *pX = pTerm->pExpr; idxCols |= cMask; pIdx->aiColumn[n] = pTerm->u.leftColumn; pColl = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight); assert( pColl!=0 || pParse->nErr>0 ); | | | 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 | Bitmask cMask = iCol>=BMS ? ((Bitmask)1)<<(BMS-1) : ((Bitmask)1)<<iCol; if( (idxCols & cMask)==0 ){ Expr *pX = pTerm->pExpr; idxCols |= cMask; pIdx->aiColumn[n] = pTerm->u.leftColumn; pColl = sqlite3BinaryCompareCollSeq(pParse, pX->pLeft, pX->pRight); assert( pColl!=0 || pParse->nErr>0 ); pIdx->azColl[n] = ALWAYS(pColl) ? pColl->zName : "BINARY"; n++; } } } assert( (u32)n==pLevel->plan.nEq ); /* Add additional columns needed to make the automatic index into |
︙ | ︙ |