We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It seems that sugar orm doesn't nest OR operations properly. For example, in this code the and operation interferes with the whereOr
Select.from(Message.class) .whereOr(Condition.prop("delivery_status").eq(DeliveryStatus.SENT), Condition.prop("delivery_status").eq(DeliveryStatus.FAILED)) .and(Condition.prop("synced").eq(0)) .list();
The result query would be
delivery_status == SENT || ( delivery_status == FAILED && synced == 0)
The text was updated successfully, but these errors were encountered:
Interesting find. Will take a closer look at this behavior within the next week.
Sorry, something went wrong.
a753b4d
whoshuu
No branches or pull requests
It seems that sugar orm doesn't nest OR operations properly. For example, in this code the and operation interferes with the whereOr
The result query would be
The text was updated successfully, but these errors were encountered: