-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Fix wrong database values when float representation is not set to English standard #6610
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
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We will by default always run a --dry-run before actually upgrading and then ask the user for confirmation to execute those updates. Alternatively a user can use a parameter --yes to avoid asking for confirmation.
<
8000
svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-git-commit">
…not have to care about this. Makes it a tiny bit slower but less prone to errors
This reverts commit 612b250.
…sing locale de_DE... should try to submit a pull request forthis otherwise we will not be able to simply update this lib
…e is used (or any locle using comma instead of dot)
…in wrong sorting results
This caused me a lot of headache. I ran the system tests with a German locale and noticed so many values are completely different. I was looking for places where there were still any float to string conversions and I was wondering why the existing fix didn't work until I noticed the PiwikTracker did not send floats but floats with a comma as decimal point which in the end was casted to ints etc.
This one was not easy to find either. The segment value contained a comma instead of a dot causing the API to not find anything and to not return any data.
…le is used the wrong value will be saved (5,55 instead of 5.55)
Feel free to merge if ok |
Looks good, some good catches there! 👍 |
mattab
pushed a commit
that referenced
this pull request
Nov 7, 2014
Fix wrong database values when float representation is not set to English standard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#6435