mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-28 11:55:03 +03:00 
			
		
		
		
	Fix SHOW and RESET grammar to accept custom variable names.
This commit is contained in:
		| @@ -11,7 +11,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *	  $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.508 2005/08/23 22:40:20 tgl Exp $ | ||||
|  *	  $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.509 2005/08/24 19:34:12 tgl Exp $ | ||||
|  * | ||||
|  * HISTORY | ||||
|  *	  AUTHOR			DATE			MAJOR EVENT | ||||
| @@ -1164,7 +1164,7 @@ ColId_or_Sconst: | ||||
|  | ||||
|  | ||||
| VariableShowStmt: | ||||
| 			SHOW ColId | ||||
| 			SHOW var_name | ||||
| 				{ | ||||
| 					VariableShowStmt *n = makeNode(VariableShowStmt); | ||||
| 					n->name = $2; | ||||
| @@ -1197,7 +1197,7 @@ VariableShowStmt: | ||||
| 		; | ||||
|  | ||||
| VariableResetStmt: | ||||
| 			RESET ColId | ||||
| 			RESET var_name | ||||
| 				{ | ||||
| 					VariableResetStmt *n = makeNode(VariableResetStmt); | ||||
| 					n->name = $2; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user