Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 99ccb23

Browse files
committed
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 f5ab0a1 which added DELETE's USING option.
1 parent d854118 commit 99ccb23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@ psql_completion(const char *text, int start, int end)
21542154
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_updatables, NULL);
21552155
/* Complete DELETE FROM <table> */
21562156
else if (TailMatches3("DELETE", "FROM", MatchAny))
2157-
COMPLETE_WITH_LIST3("USING", "WHERE", "SET");
2157+
COMPLETE_WITH_LIST2("USING", "WHERE");
21582158
/* XXX: implement tab completion for DELETE ... USING */
21592159

21602160
/* DISCARD */

0 commit comments

Comments
 (0)