A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL
BSD 3-Clause "New" or "Revised" License
604
stars
156
forks
source link
Valid query is parsed and re-created as invalid query (misplaced bracket) #348
Open
carlomanf opened 2 years ago
The below code example attempts to parse a valid SQL query and re-create it.
$this->creator
and$this->parser
are instances of the creator and parser.Upon the query being re-created, the closing bracket of the values clause seems to be moved to the end of the query, causing an SQL error.
In other words, a valid query is being parsed and re-created as an invalid query.
Tested with v4.4.0