Skip to content

Commit 6c93ee0

Browse files
committed
fix parsing (.. union ..) union ..
1 parent c34fefc commit 6c93ee0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mindsdb_sql/parser/dialects/mindsdb/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,9 @@ def union(self, p):
10281028

10291029
# tableau
10301030
@_('LPAREN select RPAREN')
1031+
@_('LPAREN union RPAREN')
10311032
def select(self, p):
1032-
return p.select
1033+
return p[1]
10331034

10341035
# WITH
10351036
@_('ctes select')

0 commit comments

Comments
 (0)