Skip to content
Snippets Groups Projects
Commit 6dad61dc authored by Michael Paquier's avatar Michael Paquier
Browse files

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 d37b816d, 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
parent 7a5e39ec
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment