-
Notifications
You must be signed in to change notification settings - Fork 93
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
Divide by 0 error #189
Comments
I can see more than one way to handle this. My preference would be to implement
Alternatively, another method like |
I like |
It will also provide functionality to do |
Is it possible to get this enhancement? |
Not likely for the next release (17.1.0, next week). Are you working on this? |
In an Operation due to the non-existent
NULLIF
clause if there is a division then the query throws a divide by 0 error.For Example:
PersonFinder.age().dividedBy(PersonFinder.daysLived()).greaterThan(365.0)
can throw a divide by zero error even ifdaysLived().notEq(0.0)
condition is added.https://stackoverflow.com/questions/861778/how-to-avoid-the-divide-by-zero-error-in-sql
The text was updated successfully, but these errors were encountered: