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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user