Bug #8670 Parser error
Submitted: 22 Feb 2005 7:43 Modified: 16 Mar 2005 17:37
Reporter: Georg Richter Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.0.3 OS:Linux (Linux)
Assigned to: Antony Curtis CPU Architecture:Any

[22 Feb 2005 7:43] Georg Richter
Description:
When using more than 1 braces around an inner join parser returns a syntax error.

How to repeat:
create table t1 (a int, b int);

create table t2 like t1;

/* this works fine */
select t1.a from (t1 inner join t2 on t1.a=t2.a) where t2.a=1;

/* syntax error with 2 braces */
select t1.a from ((t1 inner join t2 on t1.a=t2.a)) where t2.a=1;

/* again syntax error */
select x.a, y.a, z.a from ( (t1 x inner join t2 y on x.a=y.a) inner join t2 z on y.a=z.a) WHERE x.a=1;
[22 Feb 2005 12:43] MySQL Verification Team
Verified with latest 5.0.3
[24 Feb 2005 18:25] Antony Curtis
Have duplicated and have 'fixed' in development. Currently undergoing testing.
[7 Mar 2005 12:53] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/22727
[16 Mar 2005 0:15] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/23066
[16 Mar 2005 17:37] Antony Curtis
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html