projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60a3dff
)
Only attempt to show collations on servers >= 9.1.
author
Magnus Hagander
<magnus@hagander.net>
Thu, 10 May 2012 07:11:38 +0000
(09:11 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Thu, 10 May 2012 07:12:26 +0000
(09:12 +0200)
Show a proper error message instead of a SQL error.
Josh Kupershmidt
src/bin/psql/describe.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/describe.c
b/src/bin/psql/describe.c
index 8dfb5705ce4564753c6689b455971d7e1abbe410..2cfacd34e38233cedcf28c55f3fee2a45d5a9dbd 100644
(file)
--- a/
src/bin/psql/describe.c
+++ b/
src/bin/psql/describe.c
@@
-3061,6
+3061,13
@@
listCollations(const char *pattern, bool verbose, bool showSystem)
printQueryOpt myopt = pset.popt;
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);
printfPQExpBuffer(&buf,