aboutsummaryrefslogtreecommitdiff
path: root/src/dbstat.c
diff options
context:
space:
mode:
authordrh <>2024-08-22 16:22:08 +0000
committerdrh <>2024-08-22 16:22:08 +0000
commitd55ab844513ab13ebbd8e6b483a75e8bdaefa98b (patch)
tree3ce182a828ef83fa20c89e17871321450a593fa0 /src/dbstat.c
parent889ce8ee907502771fcc66cb815a06c1254b34a8 (diff)
downloadsqlite-d55ab844513ab13ebbd8e6b483a75e8bdaefa98b.tar.gz
sqlite-d55ab844513ab13ebbd8e6b483a75e8bdaefa98b.zip
Add the SQLITE_INDEX_SCAN_HEX bit to the sqlite3_index_info.idxFlags bitmask.
When set, this bit causes the EXPLAIN QUERY PLAN output to show the idxNum value in hex rather than in decimal. This is purely a debugging aid. FossilOrigin-Name: 6c00e88ebdb41d6317bb8758825521614dedc2e6e6289ff415c5f0406eed815b
Diffstat (limited to 'src/dbstat.c')
-rw-r--r--src/dbstat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dbstat.c b/src/dbstat.c
index c70d80637..d635a8297 100644
--- a/src/dbstat.c
+++ b/src/dbstat.c
@@ -279,6 +279,7 @@ static int statBestIndex(sqlite3_vtab *tab, sqlite3_index_info *pIdxInfo){
pIdxInfo->orderByConsumed = 1;
pIdxInfo->idxNum |= 0x08;
}
+ pIdxInfo->idxFlags |= SQLITE_INDEX_SCAN_HEX;
return SQLITE_OK;
}