From 4f402f26b15902d22f13df5e77cfdc4d8a5622cb Mon Sep 17 00:00:00 2001 From: drh Date: Tue, 11 Jun 2013 18:59:38 +0000 Subject: Improved processing of DISTINCT. FossilOrigin-Name: ba897100fed291d2025f68d09334f9985312298b --- ext/misc/fuzzer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/misc/fuzzer.c') diff --git a/ext/misc/fuzzer.c b/ext/misc/fuzzer.c index 023bdb1d0..fe41cda8c 100644 --- a/ext/misc/fuzzer.c +++ b/ext/misc/fuzzer.c @@ -1079,7 +1079,7 @@ static int fuzzerBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){ int i; int seenMatch = 0; const struct sqlite3_index_constraint *pConstraint; - double rCost = 100000; + double rCost = 1e12; pConstraint = pIdxInfo->aConstraint; for(i=0; inConstraint; i++, pConstraint++){ @@ -1095,7 +1095,7 @@ static int fuzzerBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){ iPlan |= 1; pIdxInfo->aConstraintUsage[i].argvIndex = 1; pIdxInfo->aConstraintUsage[i].omit = 1; - rCost /= 1000000.0; + rCost /= 1e6; } if( (iPlan & 2)==0 && pConstraint->iColumn==1 @@ -1132,7 +1132,7 @@ static int fuzzerBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){ ){ pIdxInfo->orderByConsumed = 1; } - if( seenMatch && (iPlan&1)==0 ) rCost *= 1e30; + if( seenMatch && (iPlan&1)==0 ) rCost = 1e99; pIdxInfo->estimatedCost = rCost; return SQLITE_OK; -- cgit v1.2.3