Commit 99ccb230 authored by Tom Lane's avatar Tom Lane

Remove silly completion for "DELETE FROM tabname ...".

psql offered USING, WHERE, and SET in this context, but SET is not a valid
possibility here.  Seems to have been a thinko in commit f5ab0a14
which added DELETE's USING option.
parent d854118c
...@@ -2154,7 +2154,7 @@ psql_completion(const char *text, int start, int end) ...@@ -2154,7 +2154,7 @@ psql_completion(const char *text, int start, int end)
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_updatables, NULL); COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_updatables, NULL);
/* Complete DELETE FROM <table> */ /* Complete DELETE FROM <table> */
else if (TailMatches3("DELETE", "FROM", MatchAny)) else if (TailMatches3("DELETE", "FROM", MatchAny))
COMPLETE_WITH_LIST3("USING", "WHERE", "SET"); COMPLETE_WITH_LIST2("USING", "WHERE");
/* XXX: implement tab completion for DELETE ... USING */ /* XXX: implement tab completion for DELETE ... USING */
/* DISCARD */ /* DISCARD */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment