1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix a bug in the sqlite_memstat virtual table that was causing it to report

the amount of memory used as zero bytes.

FossilOrigin-Name: 8a758a872175b0c74e631c231240c5c733fbec708d0cff23eb9c4025e4a800ec
This commit is contained in:
drh
2018-09-28 18:51:18 +00:00
parent 60afcb80ee
commit 09b523c99b
3 changed files with 11 additions and 9 deletions

View File

@ -345,9 +345,11 @@ static int memstatFilter(
int argc, sqlite3_value **argv
){
memstat_cursor *pCur = (memstat_cursor *)pVtabCursor;
pCur->iRowid = 1;
int rc = memstatFindSchemas(pCur);
if( rc ) return rc;
pCur->iRowid = 0;
pCur->iDb = 0;
return memstatFindSchemas(pCur);
return memstatNext(pVtabCursor);
}
/*