diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-11-28 11:51:30 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-11-28 11:51:35 -0500 |
commit | 28735cc72d992ed52df0c3d90140d914ef722639 (patch) | |
tree | 7a69bbf9f6333afef935b7b1edaebbcbddbc5a1b /src | |
parent | 3a3ac47998ec5beb738cc7e55d7bc2cfce206661 (diff) | |
download | postgresql-28735cc72d992ed52df0c3d90140d914ef722639.tar.gz postgresql-28735cc72d992ed52df0c3d90140d914ef722639.zip |
Fix busted tab-completion pattern for ALTER TABLE t ALTER c DROP ...
Evidently a thinko in commit 9b181b036.
Kyotaro Horiguchi
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/tab-complete.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 8469d9ff03d..4cf208e16be 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] <foo> 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"); |