summaryrefslogtreecommitdiff
path: root/src/bin/psql/describe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/describe.c')
-rw-r--r--src/bin/psql/describe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index b0b4f9d48d4..882e95e648c 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -317,11 +317,11 @@ listAllDbs(PsqlSettings *pset, bool desc)
strcpy(buf,
"SELECT pg_database.datname as \"Database\",\n"
- " pg_user.usename as \"Owner\""
+ " pg_user.usename as \"Owner\"");
#ifdef MULTIBYTE
- ",\n pg_database.encoding as \"Encoding\""
+ strcat(buf,
+ ",\n pg_database.encoding as \"Encoding\"");
#endif
- );
if (desc)
strcat(buf, ",\n obj_description(pg_database.oid) as \"Description\"\n");
strcat(buf, "FROM pg_database, pg_user\n"