RussellEngland / 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

Parser Problem when union contains ORDER BY #96

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Please help, i have problem when i run this query
$sql="(SELECT 1 AS `ID`) UNION (SELECT 2 AS `ID`) ORDER BY ID";
$parser=new PHPSQLParser($sql);

Original issue reported on code.google.com by hith2...@gmail.com on 3 Aug 2013 at 6:39

GoogleCodeExporter commented 8 years ago
I have to write a new processor for UNION statements.

Original comment by pho...@gmx.de on 5 Mar 2014 at 10:19