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
This commit is contained in:
+3
-1
@@ -200,7 +200,9 @@ int sqlite3WhereExplainOneScan(
|
||||
}
|
||||
#ifndef SQLITE_OMIT_VIRTUALTABLE
|
||||
else if( (flags & WHERE_VIRTUALTABLE)!=0 ){
|
||||
sqlite3_str_appendf(&str, " VIRTUAL TABLE INDEX %d:%s",
|
||||
sqlite3_str_appendall(&str, " VIRTUAL TABLE INDEX ");
|
||||
sqlite3_str_appendf(&str,
|
||||
pLoop->u.vtab.bIdxNumHex ? "0x%x:%s" : "%d:%s",
|
||||
pLoop->u.vtab.idxNum, pLoop->u.vtab.idxStr);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user