projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d685814
)
Add autocompletion of locale keywords for CREATE DATABASE
author
Magnus Hagander
<magnus@hagander.net>
Sat, 12 Jul 2014 12:17:43 +0000
(14:17 +0200)
committer
Magnus Hagander
<magnus@hagander.net>
Sat, 12 Jul 2014 12:17:43 +0000
(14:17 +0200)
Adds support for autocomplete of LC_COLLATE and LC_CTYPE to
the CREATE DATABASE command in psql.
src/bin/psql/tab-complete.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/tab-complete.c
b/src/bin/psql/tab-complete.c
index 6c2d431842c28dcc202e74047d70f6f79372a12d..c3a54d458a1ac7df1f6a983c5b6fd68e45a31b32 100644
(file)
--- a/
src/bin/psql/tab-complete.c
+++ b/
src/bin/psql/tab-complete.c
@@
-2114,7
+2114,8
@@
psql_completion(const char *text, int start, int end)
{
static const char *const list_DATABASE[] =
{"OWNER", "TEMPLATE", "ENCODING", "TABLESPACE", "IS_TEMPLATE",
- "ALLOW_CONNECTIONS", "CONNECTION LIMIT", NULL};
+ "ALLOW_CONNECTIONS", "CONNECTION LIMIT", "LC_COLLATE", "LC_CTYPE",
+ NULL};
COMPLETE_WITH_LIST(list_DATABASE);
}