ellecer / cqengine

Automatically exported from code.google.com/p/cqengine
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 commented 9 years ago
Also should consider adding support for literal yes() and no() queries.

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