mnpenner / php-sql-parser

Automatically exported from code.google.com/p/php-sql-parser
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

superfluous brackets confuse the Parser #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like the parser to ignore superfluous brackets.
When I parse:
(
SELECT CNAME
FROM COCKTAIL
)

I get:

Array
(
    [SELECT] => Array
        (
            [0] => Array
                (
                    [delim] => 
                )
        )
)

But would like the Parser to just ignore the brackets.

I am using 'php-sql-parser-20140123'.

Thank you, and keep up the great work!

Trini

Original issue reported on code.google.com by trinitro...@gmail.com on 8 Feb 2014 at 11:16

GoogleCodeExporter commented 9 years ago
see issue 117, another user needs the parentheses. See r1081, I have added a 
test case for the issue, but there is nothing to do, it seems to work. The 
revision is not yet part of a release, so please check out the /trunk.

Original comment by pho...@gmx.de on 18 Feb 2014 at 1:49