diff options
author | drh <drh@noemail.net> | 2013-06-11 18:59:38 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-06-11 18:59:38 +0000 |
commit | 4f402f26b15902d22f13df5e77cfdc4d8a5622cb (patch) | |
tree | 2449f081a13a7bd7c7dd928a27b367c9ebd76ab0 /ext/misc/fuzzer.c | |
parent | 8e23daf372c57084e7921e48c1b7968b631bb94d (diff) | |
download | sqlite-4f402f26b15902d22f13df5e77cfdc4d8a5622cb.tar.gz sqlite-4f402f26b15902d22f13df5e77cfdc4d8a5622cb.zip |
Improved processing of DISTINCT.
FossilOrigin-Name: ba897100fed291d2025f68d09334f9985312298b
Diffstat (limited to 'ext/misc/fuzzer.c')
-rw-r--r-- | ext/misc/fuzzer.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; i<pIdxInfo->nConstraint; 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; |