postgres.git / summary / log / commit / refs

commit    6270ec1e5cb0efdcb2c8a22f126958e356496e51
Author:   Tom Lane <tgl@sss.pgh.pa.us>
Date:     Sun Dec 20 23:29:52 2015 +0000
First released in: 9.6.0, 9.1.20, 9.2.15, 9.3.11, 9.4.6, 9.5.0

    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 f5ab0a14ea83eb6c
    which added DELETE's USING option.


src/bin/psql/tab-complete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 8f9ab696106..ade87a75e1b 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -2003,7 +2003,7 @@ psql_completion(char *text, int start, int end) pg_strcasecmp(prev2_wd, "FROM") == 0) { static const char *const list_DELETE[] = - {"USING", "WHERE", "SET", NULL}; + {"USING", "WHERE", NULL}; COMPLETE_WITH_LIST(list_DELETE); } [parent: db462a44e22d]