-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
Sorting mixed-currency amounts in SQL produces wrong result #980
Comments
Changaco
added
the
bug
malfunctions which should be corrected as soon as possible
label
Feb 15, 2018
Changaco
changed the title
SQL sort of mixed-currency amounts is wrong
Sorting mixed-currency amounts in SQL produces wrong result
Feb 15, 2018
Now that we handle 33 currencies, including quite a few with exchange rates of a much greater amplitude than EUR↔USD, this bug is going to become more problematic. |
Yep. |
Merged
I was unable to fix the sorting bug so I worked around it instead. |
unblocked |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our comparison functions raise an error when currencies don't match, but postgres appears to fall back to comparing the underlying tuples, so we end up with $11 being sorted higher than €10.
The text was updated successfully, but these errors were encountered: