You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. execute this code :
$parser = new PHPSQLParser();
$sql = "SELECT _utf8'hi'";
$parser->parse($sql, true);
2. script dies with this message :
cannot calculate position of _utf8 within _utf8'hi'
What is the expected output? What do you see instead?
Expected the parser to return an array with one element in the SELECT array.
What version of the product are you using? On what operating system?
rev 235 on windows 7.
Please provide any additional information below.
failing test case :
-----------
<?php
require_once(dirname(__FILE__) . '/../../../php-sql-parser.php');
require_once(dirname(__FILE__) . '/../../test-more.php');
$parser = new PHPSQLParser();
$sql = "SELECT _utf8'hi'";
$parser->parse($sql, true);
$p = $parser->parsed;
$expected = getExpectedValue(dirname(__FILE__), 'issue50.serialized');
eq_array($p, $expected, 'does not die if query contains _utf8 construct');
Original issue reported on code.google.com by nderm...@adequasys.com on 24 Apr 2012 at 9:31
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
nderm...@adequasys.com
on 24 Apr 2012 at 9:31The text was updated successfully, but these errors were encountered: