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

Commit71ca536

Browse files
committed
Only attempt to show collations on servers >= 9.1.
Show a proper error message instead of a SQL error.Josh Kupershmidt
1 parent05a8689 commit71ca536

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/bin/psql/describe.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2893,6 +2893,13 @@ listCollations(const char *pattern, bool verbose, bool showSystem)
28932893
printQueryOptmyopt=pset.popt;
28942894
staticconstbooltranslate_columns[]= {false, false, false, false, false};
28952895

2896+
if (pset.sversion<90100)
2897+
{
2898+
fprintf(stderr,_("The server (version %d.%d) does not support collations.\n"),
2899+
pset.sversion /10000, (pset.sversion /100) %100);
2900+
return true;
2901+
}
2902+
28962903
initPQExpBuffer(&buf);
28972904

28982905
printfPQExpBuffer(&buf,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp