-
Notifications
You must be signed in to change notification settings - Fork 77
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
Query with optional where clause, in or clause, generates wrong query #69
Comments
Aha, thanks! Will fix. Regards, On Wed, Nov 7, 2012 at 8:09 AM, Konrad Malawski notifications@github.comwrote:
|
Resolves #69 - in which or(where, whereOpt(None)) creates a bad query
This solves an edge case when you have an or(_.where, _.whereOpt(None)) which would before leave a blank `{}` in the query string, making misbehave. I've added `isEmpty` to `AndCondition`, please let me know if you'd rather keep it method-less, and we can find a better place for this method (or don't introduce one at all?)
Hey guys,
seems we encountered a bug in building a specific query, example bellow:
Which generates such query (
additionalThing = None
):What we don't like here is the
{ }
part in theor
. We'd rather just have it left out.This makes the query fetch the entire collection so we had to fallback to manual building of or if it's needed.
Cheers and thanks for the great lib :)
Konrad
The text was updated successfully, but these errors were encountered: