1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-15 11:41:13 +03:00

Fix the cost estimation in the BestIndex method of the eponymous pragma

virtual table implementation.

FossilOrigin-Name: 7126807a186746a8663fbaa267d63214d06476e4
This commit is contained in:
drh
2016-12-15 21:33:55 +00:00
parent d7175ebeaf
commit ae7045cd53
3 changed files with 8 additions and 7 deletions

View File

@@ -2056,6 +2056,7 @@ static int pragmaVtabBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
int i, j;
int seen[2];
pIdxInfo->estimatedCost = (double)1;
if( pTab->nHidden==0 ){ return SQLITE_OK; }
pConstraint = pIdxInfo->aConstraint;
seen[0] = 0;