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

sql select containsAll using rid not working #1218

Closed
wmccusker opened this issue Dec 17, 2012 · 0 comments
Closed

sql select containsAll using rid not working #1218

wmccusker opened this issue Dec 17, 2012 · 0 comments

Comments

@wmccusker
Copy link

Hello, I am using the 1.2.0 release and am trying to run a query that is searching for a document that references a number of other documents. When I run the query using "containsAll" I get 0 items found. However if I do a query using "in" for each separate rid I get the expected result of 1 items found. Am I misusing the "containsAll" function in my queries or should it in fact be returning the result I am expecting?

Here is the query using "in" that works and it's results:

select from Parent where Child in [#11:1] and Child in [#11:0]

---+---------+
#| RID |
---+---------+
0| #8:0|
---+---------+

1 item(s) found.

This is the query using "containsAll" that doesn't work

select from Parent where Child containsAll [#11:1, #11:0]

0 item(s) found.

The parent I am querying for only has two children and they are #11:0 and #11:1 which is why I was expecting "containsAll" to return a record. If it would help I can attach an export of the database I have since its some very small test data.

@lvca lvca closed this as completed Oct 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants