Skip to content

Commit c9d98bf

Browse files
authored
Merge pull request #80 from mindsdb/union-in-in
Fix unions with parens
2 parents 67cd0ca + 38ba359 commit c9d98bf

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

mindsdb_sql_parser/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
__title__ = 'mindsdb_sql_parser'
22
__package_name__ = 'mindsdb_sql_parser'
3-
__version__ = '0.13.4'
3+
__version__ = '0.13.5'
44
__description__ = "Mindsdb SQL parser"
55
__email__ = "jorge@mindsdb.com"
66
__author__ = 'MindsDB Inc'

mindsdb_sql_parser/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,8 +1109,8 @@ def union(self, p):
11091109
return Except(left=p[0], right=p[-1], unique=unique, distinct_key=distinct_key)
11101110

11111111
# tableau
1112-
@_('LPAREN select RPAREN')
1113-
def select(self, p):
1112+
@_('LPAREN union RPAREN')
1113+
def union(self, p):
11141114
return p[1]
11151115

11161116
@_('select')

0 commit comments

Comments
 (0)