Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e2ce88b

Browse files
committed
Add tab completion for DECLARE .. ASENSITIVE in psql
This option has been introduced in dd13ad9. Author: Shinya Kato Discussion: https://postgr.es/m/TYAPR01MB289665526B76DA29DC70A031C4F09@TYAPR01MB2896.jpnprd01.prod.outlook.com
1 parent 1e34452 commit e2ce88b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/psql/tab-complete.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3055,8 +3055,8 @@ psql_completion(const char *text, int start, int end)
30553055
/* DECLARE */
30563056

30573057
/*
3058-
* Complete DECLARE <name> with one of BINARY, INSENSITIVE, SCROLL, NO
3059-
* SCROLL, and CURSOR.
3058+
* Complete DECLARE <name> with one of BINARY, ASENSITIVE, INSENSITIVE,
3059+
* SCROLL, NO SCROLL, and CURSOR.
30603060
*/
30613061
else if (Matches("DECLARE", MatchAny))
30623062
COMPLETE_WITH("BINARY", "ASENSITIVE", "INSENSITIVE", "SCROLL", "NO SCROLL",
@@ -3070,8 +3070,8 @@ psql_completion(const char *text, int start, int end)
30703070
* indicates.
30713071
*/
30723072
else if (HeadMatches("DECLARE") && TailMatches("BINARY"))
3073-
COMPLETE_WITH("INSENSITIVE", "SCROLL", "NO SCROLL", "CURSOR");
3074-
else if (HeadMatches("DECLARE") && TailMatches("INSENSITIVE"))
3073+
COMPLETE_WITH("ASENSITIVE", "INSENSITIVE", "SCROLL", "NO SCROLL", "CURSOR");
3074+
else if (HeadMatches("DECLARE") && TailMatches("ASENSITIVE|INSENSITIVE"))
30753075
COMPLETE_WITH("SCROLL", "NO SCROLL", "CURSOR");
30763076
else if (HeadMatches("DECLARE") && TailMatches("SCROLL"))
30773077
COMPLETE_WITH("CURSOR");

0 commit comments

Comments
 (0)