1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-22 20:22:44 +03:00

Make sure the WHERE_IDX_ONLY flag is not set on query plans that will not

be using an index.

FossilOrigin-Name: 698b2a28004a9a2f0eabaadf36d833da4400b2bf
This commit is contained in:
drh
2012-09-17 21:24:01 +00:00
parent de9a7b8a94
commit d2e2bf9ff7
3 changed files with 8 additions and 7 deletions

View File

@@ -3223,6 +3223,7 @@ static void bestBtreeIndex(
** it seems to be working well enough at the moment.
*/
cost = aiRowEst[0]*4;
wsFlags &= ~WHERE_IDX_ONLY;
}else{
log10N = estLog(aiRowEst[0]);
cost = nRow;