提交 83ba41f0 编写于 作者: T Tom Lane

Fix SHOW and RESET grammar to accept custom variable names.

上级 5d14b0d0
...@@ -11,7 +11,7 @@ ...@@ -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: ...@@ -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: ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册