Content-Length: 261297 | pFad | http://github.com/postgrespro/postgres_cluster/commit/404e667580fec0ab9a89a38eaa8643ee7227fdb8

9B Fix busted tab-completion pattern for ALTER TABLE t ALTER c DROP ... · postgrespro/postgres_cluster@404e667 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/404e667580fec0ab9a89a38eaa8643ee7227fdb8

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy