Skip to content

Commit 404e667

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 dafa084 commit 404e667

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
@@ -1804,7 +1804,7 @@ psql_completion(const char *text, int start, int end)
18041804
COMPLETE_WITH_LIST4("PLAIN", "EXTERNAL", "EXTENDED", "MAIN");
18051805
/* ALTER TABLE ALTER [COLUMN] <foo> DROP */
18061806
else if (Matches7("ALTER", "TABLE", MatchAny, "ALTER", "COLUMN", MatchAny, "DROP") ||
1807-
Matches8("ALTER", "TABLE", MatchAny, "TABLE", MatchAny, "ALTER", MatchAny, "DROP"))
1807+
Matches6("ALTER", "TABLE", MatchAny, "ALTER", MatchAny, "DROP"))
18081808
COMPLETE_WITH_LIST2("DEFAULT", "NOT NULL");
18091809
else if (Matches4("ALTER", "TABLE", MatchAny, "CLUSTER"))
18101810
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