mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Ignore likelihood() values on indexed IPK lookups.
FossilOrigin-Name: 5bb7757a7b32a74482d3e93e9c9eea02273fe981
This commit is contained in:
@@ -4189,7 +4189,7 @@ static int whereLoopAddBtreeIndex(
|
||||
assert( eOp & (WO_ISNULL|WO_EQ|WO_IN) );
|
||||
|
||||
assert( pNew->nOut==saved_nOut );
|
||||
if( pTerm->truthProb<=0 ){
|
||||
if( pTerm->truthProb<=0 && iCol>=0 ){
|
||||
assert( (eOp & WO_IN) || nIn==0 );
|
||||
pNew->nOut += pTerm->truthProb;
|
||||
pNew->nOut -= nIn;
|
||||
|
||||
Reference in New Issue
Block a user