greenlion / PHP-SQL-Parser

A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL
BSD 3-Clause "New" or "Revised" License
603 stars 156 forks source link

Quotes in comments break parser, returns false #233

Closed dbould closed 7 years ago

dbould commented 7 years ago
#Check parser doesn't break with single quotes
CREATE TABLE moomoo (cow VARCHAR(20));

This will return false. Removing the ' from doesn't returns an array of parsed SQL as expected.

dbould commented 7 years ago

Fixed in PR https://github.com/greenlion/PHP-SQL-Parser/pull/235

greenlion commented 7 years ago

Thanks.