mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
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
This commit is contained in:
@ -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");
|
||||
|
Reference in New Issue
Block a user