-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Enable JSON_PRESERVE_ZERO_FRACTION in jsonRequest method
#59769
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
Enable JSON_PRESERVE_ZERO_FRACTION in jsonRequest method
#59769
Conversation
|
Hey! Thanks for your PR. You are targeting branch "7.3" but it seems your PR description refers to branch "7.2". Cheers! Carsonbot |
JSON_PRESERVE_ZERO_FRACTION in jsonRequest method
961c9ae to
b8fcd13
Compare
|
this needs a regression tests (which would also help understand which issue is being fixed) |
test added |
|
Will be cast to int 0? Or do you mean cast to int 10 in the pr description? |
nicolas-grekas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose we should merge this in 6.4
JSON_PRESERVE_ZERO_FRACTION in jsonRequest methodJSON_PRESERVE_ZERO_FRACTION in jsonRequest method
10, sorry. |
b066b65 to
535953e
Compare
|
Thank you @raffaelecarelle. |
Updated the jsonRequest method to use JSON_PRESERVE_ZERO_FRACTION when encoding parameters.
This avoid unintended cast to int.
Test case:
"cost" will be cast to int
10