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

Commit3429145

Browse files
committed
psql: Tab completion for JOIN ... USING column list
For JOIN ... USING, offer attribute names for the first member of thecolumn list.Author: Andreas KarlssonReviewed-By: Tomas VondraDiscussion:https://postgr.es/m/3a7e27bc-d6ed-4cb0-9b21-f21143fc1b37@proxel.se
1 parenta01f6fa commit3429145

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/bin/psql/tab-complete.in.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5179,6 +5179,10 @@ match_previous_words(int pattern_id,
51795179
TailMatches("JOIN",MatchAny,MatchAny,"USING")||
51805180
TailMatches("JOIN","LATERAL",MatchAny,MatchAny,"USING"))
51815181
COMPLETE_WITH("(");
5182+
elseif (TailMatches("JOIN",MatchAny,"USING","("))
5183+
COMPLETE_WITH_ATTR(prev3_wd);
5184+
elseif (TailMatches("JOIN",MatchAny,MatchAny,"USING","("))
5185+
COMPLETE_WITH_ATTR(prev4_wd);
51825186

51835187
/* ... AT [ LOCAL | TIME ZONE ] ... */
51845188
elseif (TailMatches("AT"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp