mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Fix SHOW and RESET grammar to accept custom variable names.
This commit is contained in:
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* HISTORY
|
||||||
* AUTHOR DATE MAJOR EVENT
|
* AUTHOR DATE MAJOR EVENT
|
||||||
@ -1164,7 +1164,7 @@ ColId_or_Sconst:
|
|||||||
|
|
||||||
|
|
||||||
VariableShowStmt:
|
VariableShowStmt:
|
||||||
SHOW ColId
|
SHOW var_name
|
||||||
{
|
{
|
||||||
VariableShowStmt *n = makeNode(VariableShowStmt);
|
VariableShowStmt *n = makeNode(VariableShowStmt);
|
||||||
n->name = $2;
|
n->name = $2;
|
||||||
@ -1197,7 +1197,7 @@ VariableShowStmt:
|
|||||||
;
|
;
|
||||||
|
|
||||||
VariableResetStmt:
|
VariableResetStmt:
|
||||||
RESET ColId
|
RESET var_name
|
||||||
{
|
{
|
||||||
VariableResetStmt *n = makeNode(VariableResetStmt);
|
VariableResetStmt *n = makeNode(VariableResetStmt);
|
||||||
n->name = $2;
|
n->name = $2;
|
||||||
|
Reference in New Issue
Block a user