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

Commit33e9f2c

Browse files
committed
Add tab completion for RESET SESSION AUTHORIZATION.
1 parent7871b7d commit33e9f2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.140 2005/11/14 17:48:43 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.141 2005/11/18 16:31:11 alvherre Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -1597,6 +1597,10 @@ psql_completion(char *text, int start, int end)
15971597
&&pg_strcasecmp(prev2_wd,"SESSION")==0
15981598
&&pg_strcasecmp(prev_wd,"AUTHORIZATION")==0)
15991599
COMPLETE_WITH_QUERY(Query_for_list_of_roles);
1600+
/* Complete RESET SESSION with AUTHORIZATION */
1601+
elseif (pg_strcasecmp(prev2_wd,"RESET")==0&&
1602+
pg_strcasecmp(prev_wd,"SESSION")==0)
1603+
COMPLETE_WITH_CONST("AUTHORIZATION");
16001604
/* Complete SET <var> with "TO" */
16011605
elseif (pg_strcasecmp(prev2_wd,"SET")==0&&
16021606
pg_strcasecmp(prev4_wd,"UPDATE")!=0&&

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp