-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Aggregate does not allow to get a float (decimal) value #342
Labels
enhancement
New feature or request
Comments
maybe you can use raw query as workaround?
|
Not really, because result requires primary ID 😄 Finally, after go-rel/primaryreplica#26 got merged, I could make request using sql connection directly. Still would be nice to be able to aggregate on decimal fields. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aggregate API returns an integer, how do I aggregate a float field?
For instance, I have a decimal price field in my database and I would like to find a sum of all prices:
Instead of getting a sum I'm getting an error
Field price has type
DECIMAL
in MySQL database.The text was updated successfully, but these errors were encountered: