aboutsummaryrefslogtreecommitdiff
path: root/src/wherecode.c
diff options
context:
space:
mode:
authordan <Dan Kennedy>2022-12-03 21:24:26 +0000
committerdan <Dan Kennedy>2022-12-03 21:24:26 +0000
commitad23a47acdc3258e988c91eac48eb8ce7a79fd53 (patch)
tree95da521aa81425b70f1234266e449a0351243b17 /src/wherecode.c
parentf6f01f15dd9ff495ac59f5abc3bbe15f4d8e88c8 (diff)
downloadsqlite-ad23a47acdc3258e988c91eac48eb8ce7a79fd53.tar.gz
sqlite-ad23a47acdc3258e988c91eac48eb8ce7a79fd53.zip
Enhance SQLITE_SCANSTAT_NCYCLE so that it reports on virtual tables.
FossilOrigin-Name: 622d8eb3724bee617b55d6fb71f1a2d683db6858065adced6bf3ce9525bcd6b5
Diffstat (limited to 'src/wherecode.c')
-rw-r--r--src/wherecode.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wherecode.c b/src/wherecode.c
index b744556fa..54c79baf9 100644
--- a/src/wherecode.c
+++ b/src/wherecode.c
@@ -302,6 +302,9 @@ void sqlite3WhereAddScanStatus(
sqlite3VdbeScanStatus(
v, addrExplain, pLvl->addrBody, pLvl->addrVisit, pLoop->nOut, zObj
);
+ if( pLoop->wsFlags & WHERE_VIRTUALTABLE ){
+ sqlite3VdbeScanStatusRange(v, addrExplain, -1, pLvl->iTabCur);
+ }
}
#endif