Closed GoogleCodeExporter closed 8 years ago
The problem also exists while not using parenthesis:
$parser = new PHPSQLParser("INSERT INTO newTablename SELECT * FROM
oldTablename;", true);
$creator = new PHPSQLCreator();
echo $creator->create($parser->parsed);
leads to:
INSERT INTO newTablename
with message:
Notice: Undefined index: VALUES in
/home/wwwadmin/baseUpdate/php-sql-parser/php-sql-creator.php on line 89
Warning: Invalid argument supplied for foreach() in
/home/wwwadmin/baseUpdate/php-sql-parser/php-sql-creator.php on line 215
Original comment by i...@enterprise-technologies.de
on 14 Dec 2012 at 5:54
This is a larger problem, because the parser doesn't split the SQL statement
right. Within the creator code, you can also see a TODO within the
processInsertStatement() method, which points to your issue :-)
Original comment by pho...@gmx.de
on 23 Oct 2013 at 8:33
I have changed the Creator for the new parser output. See r1017.
Original comment by pho...@gmx.de
on 13 Jan 2014 at 12:06
Original issue reported on code.google.com by
i...@enterprise-technologies.de
on 13 Dec 2012 at 6:39