Skip to content

Commit 4265097

Browse files
committed
fix unions with parens
1 parent 86ba838 commit 4265097

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)