mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04: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:
		
							parent
							
								
									1e3445237b
								
							
						
					
					
						commit
						e2ce88b58f
					
				| @ -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"); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user