Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 28735cc

Browse files
committed
Fix busted tab-completion pattern for ALTER TABLE t ALTER c DROP ...
Evidently a thinko in commit 9b181b0. Kyotaro Horiguchi
1 parent 3a3ac47 commit 28735cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1736,7 +1736,7 @@ psql_completion(const char *text, int start, int end)
17361736
COMPLETE_WITH_LIST4("PLAIN", "EXTERNAL", "EXTENDED", "MAIN");
17371737
/* ALTER TABLE ALTER [COLUMN] <foo> DROP */
17381738
else if (Matches7("ALTER", "TABLE", MatchAny, "ALTER", "COLUMN", MatchAny, "DROP") ||
1739-
Matches8("ALTER", "TABLE", MatchAny, "TABLE", MatchAny, "ALTER", MatchAny, "DROP"))
1739+
Matches6("ALTER", "TABLE", MatchAny, "ALTER", MatchAny, "DROP"))
17401740
COMPLETE_WITH_LIST2("DEFAULT", "NOT NULL");
17411741
else if (Matches4("ALTER", "TABLE", MatchAny, "CLUSTER"))
17421742
COMPLETE_WITH_CONST("ON");

0 commit comments

Comments
 (0)