Skip to content
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

Modify Or/And to allow only one child. #33

Open
GoogleCodeExporter opened this issue Jun 15, 2015 · 2 comments
Open

Modify Or/And to allow only one child. #33

GoogleCodeExporter opened this issue Jun 15, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create an or()/and() with only one child query.

What is the expected output? What do you see instead?
The result should check the return of the single child query.
An IllegalStateException is thrown saying that the query cannot have fewer than 
2 child queries.


What version of the product are you using? On what operating system?
1.2.6

Please provide any additional information below.


Original issue reported on code.google.com by Lewis.He...@cobraflow.com on 16 Jan 2014 at 12:24

@GoogleCodeExporter
Copy link
Author

Also should consider adding support for literal yes() and no() queries.

Original comment by ni...@npgall.com on 16 Jan 2014 at 4:03

  • Changed state: Accepted
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

I'll keep this issue open as it's still under consideration (although I'm not 
sure how it could be implemented yet).

However just to add - the all() and none() queries can be used in a similar way 
as the yes() and no() queries proposed above.

Original comment by ni...@npgall.com on 20 Apr 2015 at 8:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant