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
The v4.4.0 parser gives incorrect results when a string contains an escaped ' character followed by the -- character sequence later in the string.
With the last two below examples, the where clause does not get parsed.
$parser = new PHPSQLParser();
$parser->parse('update table1 set col1 = \'\\\'\' where col2 = 1'); // works
$parser->parse('update table1 set col1 = \'--\' where col2 = 1'); // works
$parser->parse('update table1 set col1 = \'--\\\'\' where col2 = 1'); // works
$parser->parse('update table1 set col1 = \'\\\'--\' where col2 = 1'); // does not work
$parser->parse('update table1 set col1 = \'a\\\'b--c\' where col2 = 1'); // does not work
The v4.4.0 parser gives incorrect results when a string contains an escaped
'
character followed by the--
character sequence later in the string.With the last two below examples, the where clause does not get parsed.
What happens to the where clause:
The text was updated successfully, but these errors were encountered: