Description
select ax^ from (select (select * from dummy) axc from dummy a)
After simplify:
SELECT ax _suggest_ FROM ( SELECT ( SELECT * FROM dummy ) axc FROM dummy a ) )
Note the extra closing brace.
TL;DR: consumeQuery assumes axc FROM dummy... is a "union-kind of" continuation of a query started in select *....
The solution is keep advancing in consumeQuery only if known tokens are ahead (e.g. union, intersect, ...)
Attachments
Issue Links
- links to