diff options
author | Michael Paquier <michael@paquier.xyz> | 2021-08-10 15:54:42 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2021-08-10 15:54:42 +0900 |
commit | e2ce88b58f151753b094f28bc387cebae865927c (patch) | |
tree | a829b6335f125ac3082a69452c21f0112cb497eb /src | |
parent | 1e3445237b861fee2524defde79428058d90c0d8 (diff) | |
download | postgresql-e2ce88b58f151753b094f28bc387cebae865927c.tar.gz postgresql-e2ce88b58f151753b094f28bc387cebae865927c.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/tab-complete.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 064892bade6..0750f702735 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3055,8 +3055,8 @@ psql_completion(const char *text, int start, int end) /* DECLARE */ /* - * Complete DECLARE <name> with one of BINARY, INSENSITIVE, SCROLL, NO - * SCROLL, and CURSOR. + * Complete DECLARE <name> with one of BINARY, ASENSITIVE, INSENSITIVE, + * SCROLL, NO SCROLL, and CURSOR. */ else if (Matches("DECLARE", MatchAny)) COMPLETE_WITH("BINARY", "ASENSITIVE", "INSENSITIVE", "SCROLL", "NO SCROLL", @@ -3070,8 +3070,8 @@ psql_completion(const char *text, int start, int end) * indicates. */ else if (HeadMatches("DECLARE") && TailMatches("BINARY")) - COMPLETE_WITH("INSENSITIVE", "SCROLL", "NO SCROLL", "CURSOR"); - else if (HeadMatches("DECLARE") && TailMatches("INSENSITIVE")) + COMPLETE_WITH("ASENSITIVE", "INSENSITIVE", "SCROLL", "NO SCROLL", "CURSOR"); + else if (HeadMatches("DECLARE") && TailMatches("ASENSITIVE|INSENSITIVE")) COMPLETE_WITH("SCROLL", "NO SCROLL", "CURSOR"); else if (HeadMatches("DECLARE") && TailMatches("SCROLL")) COMPLETE_WITH("CURSOR"); |