diff options
author | Michael Paquier | 2019-08-05 05:30:34 +0000 |
---|---|---|
committer | Michael Paquier | 2019-08-05 05:30:34 +0000 |
commit | dd64a45a7d5982a6e0ef4569f0f16507db93136e (patch) | |
tree | 64c8d5c90cee5bc489d5e62aca19e41b3d0e3e14 | |
parent | 6138386dcbd12831c5fb9f9b65e75cfeb407147b (diff) |
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
-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 bc8e35f8ec1..272fca1d0ba 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -1456,7 +1456,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)) |