Bug #17 Incorrect parsing of UNION in IN subselect
| Submitted: | 30 Dec 2002 0:38 | Modified: | 21 Jul 2003 8:03 |
|---|---|---|---|
| Reporter: | Oleksandr Byelkin | Email Updates: | |
| Status: | Won't fix | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 4.1 | OS: | Any (any) |
| Assigned to: | CPU Architecture: | Any |
[30 Dec 2002 0:38]
Oleksandr Byelkin
[3 Mar 2003 7:29]
MySQL Verification Team
This bug happens to due to error in parsing. A problem is caused by parenthesis parsing in 4.1. Simply, with: select 1 in ((select 1) union (select 2)); first select in UNION drops in select_init2 instead in select_init1 parser label !!!
[21 Jul 2003 8:03]
Sergei Golubchik
the problem is that "SELECT 1" is a correct expression. E.g. this query works: SELECT 1 IN ((SELECT 1),(SELECT 2)); I cannot see how to fix parser to distinguish SELECT 1 IN ((SELECT 1) UNION (SELECT 2)) from the above with only one look-ahead. At least not without very ugly workarounds and really lousy grammar. This bug will go away automatically, when we'll get new parser (not bison-based)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.