diff options
author | drh <> | 2021-03-19 19:44:56 +0000 |
---|---|---|
committer | drh <> | 2021-03-19 19:44:56 +0000 |
commit | 6610e6a54fa48bc7a60263a54232559862f1176c (patch) | |
tree | 8be255f21050c2e939903f97c085875532c8963b /src/printf.c | |
parent | d218decec500b362eb814193451369243b473f12 (diff) | |
download | sqlite-6610e6a54fa48bc7a60263a54232559862f1176c.tar.gz sqlite-6610e6a54fa48bc7a60263a54232559862f1176c.zip |
Further simplification of the EQP output. Only show "SUBQUERY n" if the
subquery is anonymous.
FossilOrigin-Name: 1fadd30525dbf22678ba014b78af3a0fb33047692f073b7c62a90a028081ac48
Diffstat (limited to 'src/printf.c')
-rw-r--r-- | src/printf.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/printf.c b/src/printf.c index 58143e302..0fb3158e9 100644 --- a/src/printf.c +++ b/src/printf.c @@ -870,17 +870,14 @@ void sqlite3_str_vappendf( } if( pItem->zName ){ sqlite3_str_appendall(pAccum, pItem->zName); - }else{ - sqlite3_str_append(pAccum, "(anonymous)", 11); + }else if( pItem->pSelect ){ + sqlite3_str_appendf(pAccum, "SUBQUERY %u", pItem->pSelect->selId); } if( flag_altform2 ){ if( pItem->zAlias ){ sqlite3_str_append(pAccum, " AS ", 4); sqlite3_str_appendall(pAccum, pItem->zAlias ); } - if( pItem->pSelect ){ - sqlite3_str_appendf(pAccum, " SUBQUERY %u", pItem->pSelect->selId); - } } length = width = 0; break; |