Skip to content

Commit 83ba41f

Browse files
committed
Fix SHOW and RESET grammar to accept custom variable names.
1 parent 5d14b0d commit 83ba41f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/parser/gram.y

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.508 2005/08/23 22:40:20 tgl Exp $
14+
* $PostgreSQL: pgsql/src/backend/parser/gram.y,v 2.509 2005/08/24 19:34:12 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -1164,7 +1164,7 @@ ColId_or_Sconst:
11641164

11651165

11661166
VariableShowStmt:
1167-
SHOW ColId
1167+
SHOW var_name
11681168
{
11691169
VariableShowStmt *n = makeNode(VariableShowStmt);
11701170
n->name = $2;
@@ -1197,7 +1197,7 @@ VariableShowStmt:
11971197
;
11981198

11991199
VariableResetStmt:
1200-
RESET ColId
1200+
RESET var_name
12011201
{
12021202
VariableResetStmt *n = makeNode(VariableResetStmt);
12031203
n->name = $2;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy