1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-18 10:21:03 +03:00

Fix a problem causing an inaccurate stat4-based estimate for the number of rows visited by a range scan.

FossilOrigin-Name: 052d89b554a947b7e420b7feb6650f5069b7cefa
This commit is contained in:
dan
2014-08-28 16:01:31 +00:00
parent 5418b1298f
commit 7fa0631ece
4 changed files with 60 additions and 9 deletions

View File

@@ -2191,6 +2191,7 @@ static int whereRangeScanEst(
tRowcnt iLower;
tRowcnt iUpper;
if( pRec ) pRec->nField = pBuilder->nRecValid;
if( nEq==p->nKeyCol ){
aff = SQLITE_AFF_INTEGER;
}else{