From: Tom Lane Date: Mon, 28 Nov 2016 16:51:30 +0000 (-0500) Subject: Fix busted tab-completion pattern for ALTER TABLE t ALTER c DROP ... X-Git-Tag: REL9_6_2~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28735cc72d992ed52df0c3d90140d914ef722639;p=postgresql Fix busted tab-completion pattern for ALTER TABLE t ALTER c DROP ... Evidently a thinko in commit 9b181b036. Kyotaro Horiguchi --- diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 8469d9ff03..4cf208e16b 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -1736,7 +1736,7 @@ psql_completion(const char *text, int start, int end) COMPLETE_WITH_LIST4("PLAIN", "EXTERNAL", "EXTENDED", "MAIN"); /* ALTER TABLE ALTER [COLUMN] 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");