Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5b51bbf

Browse files
committed
Fix tab completion for UPDATE.
Previously it suggested an extra "=" after "SET x=". Reported-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/CA%2BhUKGLk%3D0yLDjfviONJLzcHEzygj%3Dx6VbGH43LnXbBUvQb52g%40mail.gmail.com
1 parent 7bdc655 commit 5b51bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/psql/tab-complete.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3487,7 +3487,7 @@ psql_completion(const char *text, int start, int end)
34873487
else if (TailMatches("UPDATE", MatchAny, "SET"))
34883488
COMPLETE_WITH_ATTR(prev2_wd, "");
34893489
/* UPDATE <table> SET <attr> = */
3490-
else if (TailMatches("UPDATE", MatchAny, "SET", MatchAny))
3490+
else if (TailMatches("UPDATE", MatchAny, "SET", MatchAnyExcept("*=")))
34913491
COMPLETE_WITH("=");
34923492

34933493
/* USER MAPPING */

0 commit comments

Comments
 (0)