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

Commit157adfd

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 parenta2fc343 commit157adfd

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
@@ -921,7 +921,7 @@ static const pgsql_thing_t words_after_create[] = {
921921
{"UNIQUE",NULL,NULL,THING_NO_DROP},/* for CREATE UNIQUE INDEX ... */
922922
{"UNLOGGED",NULL,NULL,THING_NO_DROP},/* for CREATE UNLOGGED TABLE
923923
* ... */
924-
{"USER",Query_for_list_of_roles},
924+
{"USER",Query_for_list_of_roles" UNION SELECT 'MAPPING FOR'"},
925925
{"USER MAPPING FOR",NULL,NULL},
926926
{"VIEW",NULL,&Query_for_list_of_views},
927927
{NULL}/* end of list */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp