aboutsummaryrefslogtreecommitdiff
path: root/src/treeview.c
diff options
context:
space:
mode:
authordrh <>2025-01-02 21:23:25 +0000
committerdrh <>2025-01-02 21:23:25 +0000
commit04364cb3cc108a044a0d9dc7162f4d550adb2f99 (patch)
tree1a8bcf0c776520c6c5b843e92ec82c0782880b34 /src/treeview.c
parentdb258d8ff74163dcd1c58730581c99bd08ef03c6 (diff)
downloadsqlite-04364cb3cc108a044a0d9dc7162f4d550adb2f99.tar.gz
sqlite-04364cb3cc108a044a0d9dc7162f4d550adb2f99.zip
Improve the treeview output for CteUse objects.
FossilOrigin-Name: 2b16d6947ca4a102ddab4d5ba3e340a75e1e5c28e45e874ee5ff52f9b5fb964f
Diffstat (limited to 'src/treeview.c')
-rw-r--r--src/treeview.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/treeview.c b/src/treeview.c
index ab32774d4..2cfcfb69b 100644
--- a/src/treeview.c
+++ b/src/treeview.c
@@ -215,7 +215,10 @@ void sqlite3TreeViewSrcList(TreeView *pView, const SrcList *pSrc){
sqlite3_str_appendf(&x, " DDL");
}
if( pItem->fg.isCte ){
- sqlite3_str_appendf(&x, " CteUse=0x%p", pItem->u2.pCteUse);
+ static const char *aMat[] = {",MAT", "", ",NO-MAT"};
+ sqlite3_str_appendf(&x, " CteUse=%d%s",
+ pItem->u2.pCteUse->nUse,
+ aMat[pItem->u2.pCteUse->eM10d]);
}
if( pItem->fg.isOn || (pItem->fg.isUsing==0 && pItem->u3.pOn!=0) ){
sqlite3_str_appendf(&x, " isOn");