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

Failing to parse a simple query #93

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Trying to parse something as simple as:
$a = (new PHPSQLParser('select 1 as `a` order by `a`', true))->parsed;

Fails with exception:
Fatal error: Uncaught exception 'UnableToCalculatePositionException' with 
message 'cannot calculate position of a within  by `a`' in ...

Using the latest version from 2012-08-22 on windows.

Original issue reported on code.google.com by v.va...@gmail.com on 17 Jun 2013 at 8:56

GoogleCodeExporter commented 8 years ago
I have fixed the issue in r386

Original comment by pho...@gmx.de on 1 Nov 2013 at 3:46