PHP-SQL-Parser icon indicating copy to clipboard operation
PHP-SQL-Parser copied to clipboard

Cast as decimal again - cannot calculate position of ,

Open Nick74k opened this issue 6 years ago • 1 comments

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.

Nick74k avatar Jul 09 '19 09:07 Nick74k

Probably also connected with #299, where part of #295 was removed.

Nick74k avatar Jul 09 '19 09:07 Nick74k