PHP-SQL-Parser
PHP-SQL-Parser copied to clipboard
Cast as decimal again - cannot calculate position of ,
Seems to be simalar to #295, but solution now is unsuitable because utils/ExpressionToken.php was reworked. The same as fixed #77.
Steps to reproduce:
$parser = new PHPSQLParser\PHPSQLParser("select cast(id as decimal(18,1)) from u", true);
Error: cannot calculate position of , within ,1)) from u
Version 4.3.0. PHP 7.3.6. Windows 10. Version 4.2.1 works well for this case.
Probably also connected with #299, where part of #295 was removed.