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 argument of the group_concat is splitted in three arguments, causing an SQL error.
var_dump(
$this->creator->create(
$this->parser->parse(
"SELECT student_name,
GROUP_CONCAT(DISTINCT test_score
ORDER BY test_score DESC SEPARATOR ' ')
FROM student
GROUP BY student_name;"
)
)
);
exit;
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 argument of the group_concat is splitted in three arguments, causing an SQL error.
Tested with v4.5.0