diff options
author | Michael Paquier <michael@paquier.xyz> | 2019-08-05 14:30:16 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2019-08-05 14:30:16 +0900 |
commit | 6dad61dc76ea5ef35a437bf881e48cf46df67e29 (patch) | |
tree | 83ea16b2d989818097ce94e5ebc394a69d427c11 /src | |
parent | 7a5e39ec94814c0df595e896a62a765a260da517 (diff) | |
download | postgresql-6dad61dc76ea5ef35a437bf881e48cf46df67e29.tar.gz postgresql-6dad61dc76ea5ef35a437bf881e48cf46df67e29.zip |
Fix tab completion for ALTER LANGUAGE in psql
OWNER_TO was used for the completion, which is not a supported grammar,
but OWNER TO is.
This error has been introduced by d37b816, so backpatch down to 9.6.
Author: Alexander Lakhin
Discussion: https://postgr.es/m/7ab243e0-116d-3e44-d120-76b3df7abefd@gmail.com
Backpatch-through: 9.6
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/tab-complete.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index fe1b170a0eb..1d63d814113 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -1887,7 +1887,7 @@ psql_completion(const char *text, int start, int end) /* ALTER LANGUAGE <name> */ else if (Matches3("ALTER", "LANGUAGE", MatchAny)) - COMPLETE_WITH_LIST2("OWNER_TO", "RENAME TO"); + COMPLETE_WITH_LIST2("OWNER TO", "RENAME TO"); /* ALTER LARGE OBJECT <oid> */ else if (Matches4("ALTER", "LARGE", "OBJECT", MatchAny)) |