-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
$parser = new PHPSQLParser("INSERT INTO newTablename (SELECT * FROM
oldTablename);", true);
$creator = new PHPSQLCreator();
echo $creator->create($parser->parsed);
What is the expected output? What do you see instead?
Expected sql as shown above.
Instead error thrown:
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
And result is: INSERT INTO newTablename (SELECT * FROM oldTablename) VALUES
What version of the product are you using? On what operating system?
current (22.8.2012)
Please provide any additional information below.
This happens with all kind of statements, as long as they use insert into ..
and select clause
Original issue reported on code.google.com by i...@enterprise-technologies.de on 13 Dec 2012 at 6:39
Reactions are currently unavailable