Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5b51bbf

Browse files
committed
Fix tab completion for UPDATE.
Previously it suggested an extra "=" after "SET x=".Reported-by: Kyotaro HoriguchiDiscussion:https://postgr.es/m/CA%2BhUKGLk%3D0yLDjfviONJLzcHEzygj%3Dx6VbGH43LnXbBUvQb52g%40mail.gmail.com
1 parent7bdc655 commit5b51bbf

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
elseif (TailMatches("UPDATE",MatchAny,"SET"))
34883488
COMPLETE_WITH_ATTR(prev2_wd,"");
34893489
/* UPDATE <table> SET <attr> = */
3490-
elseif (TailMatches("UPDATE",MatchAny,"SET",MatchAny))
3490+
elseif (TailMatches("UPDATE",MatchAny,"SET",MatchAnyExcept("*=")))
34913491
COMPLETE_WITH("=");
34923492

34933493
/* USER MAPPING */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp