提交 449b4cc1 编写于 作者: T Tatsuo Ishii

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

上级 5eb1d0de
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册