Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast as decimal again - cannot calculate position of , #308

Open
Nick74k opened this issue Jul 9, 2019 · 1 comment
Open

Cast as decimal again - cannot calculate position of , #308

Nick74k opened this issue Jul 9, 2019 · 1 comment

Comments

@Nick74k
Copy link

Nick74k commented Jul 9, 2019

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
Copy link
Author

Nick74k commented Jul 9, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant