Skip to content

Commit e733adc

Browse files
committed
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
1 parent 670f2a4 commit e733adc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1676,7 +1676,7 @@ psql_completion(const char *text, int start, int end)
16761676

16771677
/* ALTER LANGUAGE <name> */
16781678
else if (Matches3("ALTER", "LANGUAGE", MatchAny))
1679-
COMPLETE_WITH_LIST2("OWNER_TO", "RENAME TO");
1679+
COMPLETE_WITH_LIST2("OWNER TO", "RENAME TO");
16801680

16811681
/* ALTER LARGE OBJECT <oid> */
16821682
else if (Matches4("ALTER", "LARGE", "OBJECT", MatchAny))

0 commit comments

Comments
 (0)