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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy