Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit449b4cc

Browse files
committed
Show encoding name rather than encoding id in case of psql -l.
1 parent5eb1d0d commit449b4cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/psql/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ listAllDbs(bool desc)
282282
" pg_user.usename as \"Owner\"");
283283
#ifdefMULTIBYTE
284284
strcat(buf,
285-
",\n pg_database.encoding as \"Encoding\"");
285+
",\npg_encoding_to_char(pg_database.encoding) as \"Encoding\"");
286286
#endif
287287
if (desc)
288288
strcat(buf,",\n obj_description(pg_database.oid) as \"Description\"\n");
@@ -297,7 +297,7 @@ listAllDbs(bool desc)
297297
" NULL as \"Owner\"");
298298
#ifdefMULTIBYTE
299299
strcat(buf,
300-
",\n pg_database.encoding as \"Encoding\"");
300+
",\npg_encoding_to_char(pg_database.encoding) as \"Encoding\"");
301301
#endif
302302
if (desc)
303303
strcat(buf,",\n obj_description(pg_database.oid) as \"Description\"\n");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp