Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db462a4
)
Remove silly completion for "DELETE FROM tabname ...".
author
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 20 Dec 2015 23:29:52 +0000
(18:29 -0500)
committer
Tom Lane
<tgl@sss.pgh.pa.us>
Sun, 20 Dec 2015 23:29:52 +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
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/tab-complete.c
b/src/bin/psql/tab-complete.c
index 8f9ab69610698583eda8f5117a8aa70fd9b0d33a..ade87a75e1bf1c6771644a9ff0a84036eef6e59a 100644
(file)
--- 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);
}