mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Fix a problem in STAT4 equality estimation for multi-column indexes
introduced by check-in [3e0590dee0e68cc1599]. FossilOrigin-Name: cfb0d9e0207128b1c2b48689288a849b19dbc00a22cfaca26eec4bfc773629f8
This commit is contained in:
@@ -1192,7 +1192,7 @@ static int whereKeyStats(
|
||||
iGap = iGap/3;
|
||||
}
|
||||
aStat[0] = iLower + iGap;
|
||||
aStat[1] = pIdx->aAvgEq[iCol];
|
||||
aStat[1] = pIdx->aAvgEq[nField-1];
|
||||
}
|
||||
|
||||
/* Restore the pRec->nField value before returning. */
|
||||
|
||||
Reference in New Issue
Block a user