sulheru / php-sql-parser

Automatically exported from code.google.com/p/php-sql-parser
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

DROP not implemented #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. define query "DROP TABLE t1"
2. subsequent parse and create results in :
Fatal error: Uncaught exception 'UnsupportedFeatureException' with message 
'DROP not implemented.' in D:\ontwikkeling\www\SqlParser\src\PHPSQLCreator.php 
on line 106 

What is the expected output? What do you see instead?
Expected : "DROP TABLE t1"

What version of the product are you using? On what operating system?
checkout after r1099

Original issue reported on code.google.com by Henk.Blo...@gmail.com on 25 Feb 2014 at 12:24

GoogleCodeExporter commented 9 years ago
Yes, there are many statements which are not part of the Creator. You can parse 
the statements, but you will not be able to re-create the SQL from the parser 
output.

Original comment by pho...@gmx.de on 25 Feb 2014 at 2:39

GoogleCodeExporter commented 9 years ago
dirty fix in r1109, this should be enhanced for other DROP statements.

Original comment by pho...@gmx.de on 25 Feb 2014 at 3:10