1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Accept the sz=N parameter on table-only lines of sqlite_stat1.

FossilOrigin-Name: e9e932aa400f217e383cda9922fbde8a4356f57a
This commit is contained in:
drh
2013-10-06 22:12:41 +00:00
parent 6b169bd86d
commit 52f6c916fb
3 changed files with 11 additions and 8 deletions

View File

@@ -1323,7 +1323,10 @@ static int analysisLoader(void *pData, int argc, char **argv, char **NotUsed){
decodeIntArray((char*)z, pIndex->nColumn+1, pIndex->aiRowEst, pIndex);
if( pIndex->pPartIdxWhere==0 ) pTable->nRowEst = pIndex->aiRowEst[0];
}else{
decodeIntArray((char*)z, 1, &pTable->nRowEst, 0);
Index fakeIdx;
fakeIdx.szIdxRow = pTable->szTabRow;
decodeIntArray((char*)z, 1, &pTable->nRowEst, &fakeIdx);
pTable->szTabRow = fakeIdx.szIdxRow;
}
return 0;