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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy