mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Do not use a partial index as a table scan in an IN operator.
Fix for ticket [1d958d90596593a77420e59]. FossilOrigin-Name: 15bc915dd7ae25bfdfbe357c3792db3639799e4d121c6b5b24297af2d6d7129e
This commit is contained in:
@@ -2443,6 +2443,7 @@ int sqlite3FindInIndex(
|
||||
Bitmask colUsed; /* Columns of the index used */
|
||||
Bitmask mCol; /* Mask for the current column */
|
||||
if( pIdx->nColumn<nExpr ) continue;
|
||||
if( pIdx->pPartIdxWhere!=0 ) continue;
|
||||
/* Maximum nColumn is BMS-2, not BMS-1, so that we can compute
|
||||
** BITMASK(nExpr) without overflowing */
|
||||
testcase( pIdx->nColumn==BMS-2 );
|
||||
|
||||
Reference in New Issue
Block a user