mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	chkpass: Add test suite
Reviewed-by: David Steele <david@pgmasters.net>
This commit is contained in:
		
							
								
								
									
										7
									
								
								contrib/chkpass/sql/chkpass.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								contrib/chkpass/sql/chkpass.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,7 @@ | ||||
| CREATE EXTENSION chkpass; | ||||
|  | ||||
| CREATE TABLE test (i int, p chkpass); | ||||
| INSERT INTO test VALUES (1, 'hello'), (2, 'goodbye'); | ||||
|  | ||||
| SELECT i, p = 'hello' AS "hello?" FROM test; | ||||
| SELECT i, p <> 'hello' AS "!hello?" FROM test; | ||||
		Reference in New Issue
	
	Block a user