Skip to content
Permalink
Browse files
Add UNION into EXPLAIN grammar rule
Small bug fix to include UNION into thr EXPLAIN grammar rule

Replaces single_query with query_list in EXPLAIN grammar rules
  • Loading branch information
dehowef committed Jan 26, 2022
1 parent bb6715b commit 5f63870cc41b3c4aee2dd0cdacedc146c812d49a
Showing 1 changed file with 4 additions and 4 deletions.
@@ -232,7 +232,7 @@ stmt:
extra->result = $1;
extra->extra = NULL;
}
| EXPLAIN single_query semicolon_opt
| EXPLAIN query_list semicolon_opt
{
ExplainStmt *estmt = NULL;

@@ -246,7 +246,7 @@ stmt:
estmt->options = NIL;
extra->extra = (Node *)estmt;
}
| EXPLAIN VERBOSE single_query semicolon_opt
| EXPLAIN VERBOSE query_list semicolon_opt
{
ExplainStmt *estmt = NULL;

@@ -260,7 +260,7 @@ stmt:
estmt->options = list_make1(makeDefElem("verbose", NULL, @2));;
extra->extra = (Node *)estmt;
}
| EXPLAIN ANALYZE single_query semicolon_opt
| EXPLAIN ANALYZE query_list semicolon_opt
{
ExplainStmt *estmt = NULL;

@@ -274,7 +274,7 @@ stmt:
estmt->options = list_make1(makeDefElem("analyze", NULL, @2));;
extra->extra = (Node *)estmt;
}
| EXPLAIN ANALYZE VERBOSE single_query semicolon_opt
| EXPLAIN ANALYZE VERBOSE query_list semicolon_opt
{
ExplainStmt *estmt = NULL;

0 comments on commit 5f63870

Please sign in to comment.