]> granicus.if.org Git - postgresql/commitdiff
Remove silly completion for "DELETE FROM tabname ...".
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Dec 2015 23:29:51 +0000 (18:29 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 20 Dec 2015 23:29:51 +0000 (18:29 -0500)
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 f5ab0a14ea83eb6c
which added DELETE's USING option.

src/bin/psql/tab-complete.c

index 1db56ee8fffaf22a0ac975e7c312b819e2c9bd27..1a7d184af9ffb06c4378a542174ed57c61e0e68e 100644 (file)
@@ -2154,7 +2154,7 @@ psql_completion(const char *text, int start, int end)
                COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_updatables, NULL);
        /* Complete DELETE FROM <table> */
        else if (TailMatches3("DELETE", "FROM", MatchAny))
-               COMPLETE_WITH_LIST3("USING", "WHERE", "SET");
+               COMPLETE_WITH_LIST2("USING", "WHERE");
        /* XXX: implement tab completion for DELETE ... USING */
 
 /* DISCARD */