Show encoding name rather than encoding id in case of psql -l.

This commit is contained in:
Tatsuo Ishii 2000-01-18 05:11:38 +00:00
parent 5eb1d0deb1
commit 449b4cc177
1 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ listAllDbs(bool desc)
" pg_user.usename as \"Owner\"");
#ifdef MULTIBYTE
strcat(buf,
",\n pg_database.encoding as \"Encoding\"");
",\n pg_encoding_to_char(pg_database.encoding) as \"Encoding\"");
#endif
if (desc)
strcat(buf, ",\n obj_description(pg_database.oid) as \"Description\"\n");
@ -297,7 +297,7 @@ listAllDbs(bool desc)
" NULL as \"Owner\"");
#ifdef MULTIBYTE
strcat(buf,
",\n pg_database.encoding as \"Encoding\"");
",\n pg_encoding_to_char(pg_database.encoding) as \"Encoding\"");
#endif
if (desc)
strcat(buf, ",\n obj_description(pg_database.oid) as \"Description\"\n");