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

Commit8e2d8b1

Browse files
committed
Add tab-completion for table name after JOIN.
Andrey Popp
1 parent8c41645 commit8e2d8b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2751,6 +2751,10 @@ psql_completion(char *text, int start, int end)
27512751
pg_strcasecmp(prev3_wd,"\\copy")!=0)
27522752
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tsvf,NULL);
27532753

2754+
/* ... JOIN ... */
2755+
elseif (pg_strcasecmp(prev_wd,"JOIN")==0)
2756+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_tsvf,NULL);
2757+
27542758
/* Backslash commands */
27552759
/* TODO: \dc \dd \dl */
27562760
elseif (strcmp(prev_wd,"\\connect")==0||strcmp(prev_wd,"\\c")==0)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp