mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
Fix busted tab-completion pattern for ALTER TABLE t ALTER c DROP ...
Evidently a thinko in commit 9b181b036
.
Kyotaro Horiguchi
This commit is contained in:
parent
dafa0848da
commit
404e667580
@ -1804,7 +1804,7 @@ psql_completion(const char *text, int start, int end)
|
||||
COMPLETE_WITH_LIST4("PLAIN", "EXTERNAL", "EXTENDED", "MAIN");
|
||||
/* ALTER TABLE ALTER [COLUMN] <foo> DROP */
|
||||
else if (Matches7("ALTER", "TABLE", MatchAny, "ALTER", "COLUMN", MatchAny, "DROP") ||
|
||||
Matches8("ALTER", "TABLE", MatchAny, "TABLE", MatchAny, "ALTER", MatchAny, "DROP"))
|
||||
Matches6("ALTER", "TABLE", MatchAny, "ALTER", MatchAny, "DROP"))
|
||||
COMPLETE_WITH_LIST2("DEFAULT", "NOT NULL");
|
||||
else if (Matches4("ALTER", "TABLE", MatchAny, "CLUSTER"))
|
||||
COMPLETE_WITH_CONST("ON");
|
||||
|
Loading…
Reference in New Issue
Block a user