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

Commit8d30407

Browse files
committed
Fix psql tab completion for CREATE USER MAPPING.
After typing CREATE USER M..., it would not fill in MAPPING FOR,even though that was clearly intended behavior.Jeff JanesDiscussion:https://postgr.es/m/CAMkU=1wo2iQ6jWnN=egqOb5NxEPn0PpANEtKHr3uPooQ+nYPtw@mail.gmail.com
1 parent77cb4a1 commit8d30407

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
@@ -1056,7 +1056,7 @@ static const pgsql_thing_t words_after_create[] = {
10561056
* INDEX ... */
10571057
{"UNLOGGED",NULL,NULL,THING_NO_DROP |THING_NO_ALTER},/* for CREATE UNLOGGED
10581058
* TABLE ... */
1059-
{"USER",Query_for_list_of_roles},
1059+
{"USER",Query_for_list_of_roles" UNION SELECT 'MAPPING FOR'"},
10601060
{"USER MAPPING FOR",NULL,NULL},
10611061
{"VIEW",NULL,&Query_for_list_of_views},
10621062
{NULL}/* end of list */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp