aboutsummaryrefslogtreecommitdiff
path: root/src/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/printf.c')
-rw-r--r--src/printf.c7
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;