summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Munro2019-07-13 03:56:20 +0000
committerThomas Munro2019-07-13 04:08:13 +0000
commit5b51bbfbd52a444a490247e66751d6a47d2ba7dd (patch)
treeb1ebd82ea78287a7a396c33db4a74d4153c8b287
parent7bdc6556fb325582b02e9a6931c38f873a0c46a0 (diff)
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
-rw-r--r--src/bin/psql/tab-complete.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 9b9202e84c..3f7001fb69 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -3487,7 +3487,7 @@ psql_completion(const char *text, int start, int end)
else if (TailMatches("UPDATE", MatchAny, "SET"))
COMPLETE_WITH_ATTR(prev2_wd, "");
/* UPDATE <table> SET <attr> = */
- else if (TailMatches("UPDATE", MatchAny, "SET", MatchAny))
+ else if (TailMatches("UPDATE", MatchAny, "SET", MatchAnyExcept("*=")))
COMPLETE_WITH("=");
/* USER MAPPING */