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

fix issue #294: missing comma in cast #295

Merged

Conversation

nicoder
Copy link
Contributor

@nicoder nicoder commented Nov 6, 2018

without this change, parsing and then re-creating a SQL query casting a
field as a decimal loses the comma in the decimal

for example DECIMAL (16,2) became DECIMAL (16 2)

added a delim in ExpressionListProcessor, when have a comma token,
as is done in SelectProcessor#process.

not sure if this is the right way to proceed,
and if it is it might need to be done in other places.

without this change, parsing and then re-creating a SQL query casting a
field as a decimal loses the comma in the decimal

for example `DECIMAL (16,2)` became `DECIMAL (16 2)`

added a `delim` in `ExpressionListProcessor`, when have a comma token,
as is done in `SelectProcessor#process`.

not sure if this is the right way to proceed,
and if it is it might need to be done in other places.
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

Successfully merging this pull request may close these issues.

None yet

2 participants