Only attempt to show collations on servers >= 9.1.
Show a proper error message instead of a SQL error. Josh Kupershmidt
This commit is contained in:
parent
60a3dffb72
commit
f33c5d471c
@ -3061,6 +3061,13 @@ listCollations(const char *pattern, bool verbose, bool showSystem)
|
|||||||
printQueryOpt myopt = pset.popt;
|
printQueryOpt myopt = pset.popt;
|
||||||
static const bool translate_columns[] = {false, false, false, false, false};
|
static const bool translate_columns[] = {false, false, false, false, false};
|
||||||
|
|
||||||
|
if (pset.sversion < 90100)
|
||||||
|
{
|
||||||
|
fprintf(stderr, _("The server (version %d.%d) does not support collations.\n"),
|
||||||
|
pset.sversion / 10000, (pset.sversion / 100) % 100);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
initPQExpBuffer(&buf);
|
initPQExpBuffer(&buf);
|
||||||
|
|
||||||
printfPQExpBuffer(&buf,
|
printfPQExpBuffer(&buf,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user