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

Commitf33c5d4

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 parent60a3dff commitf33c5d4

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
@@ -3061,6 +3061,13 @@ listCollations(const char *pattern, bool verbose, bool showSystem)
30613061
printQueryOptmyopt=pset.popt;
30623062
staticconstbooltranslate_columns[]= {false, false, false, false, false};
30633063

3064+
if (pset.sversion<90100)
3065+
{
3066+
fprintf(stderr,_("The server (version %d.%d) does not support collations.\n"),
3067+
pset.sversion /10000, (pset.sversion /100) %100);
3068+
return true;
3069+
}
3070+
30643071
initPQExpBuffer(&buf);
30653072

30663073
printfPQExpBuffer(&buf,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp