diff options
author | drh <> | 2025-01-02 21:23:25 +0000 |
---|---|---|
committer | drh <> | 2025-01-02 21:23:25 +0000 |
commit | 04364cb3cc108a044a0d9dc7162f4d550adb2f99 (patch) | |
tree | 1a8bcf0c776520c6c5b843e92ec82c0782880b34 /src | |
parent | db258d8ff74163dcd1c58730581c99bd08ef03c6 (diff) | |
download | sqlite-04364cb3cc108a044a0d9dc7162f4d550adb2f99.tar.gz sqlite-04364cb3cc108a044a0d9dc7162f4d550adb2f99.zip |
Improve the treeview output for CteUse objects.
FossilOrigin-Name: 2b16d6947ca4a102ddab4d5ba3e340a75e1e5c28e45e874ee5ff52f9b5fb964f
Diffstat (limited to 'src')
-rw-r--r-- | src/treeview.c | 5 |
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"); |