[JAVA-527] $all does not work correctly Created: 29/Feb/12 Updated: 29/Feb/12 Resolved: 29/Feb/12 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 2.7 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Widmer | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
There are no results returned when using $all in a query even though running the same query in a client will return results. If I change it to use $in it will return results. Here is an example of a query that works: { , Here is the one that doesn't: , PPL is an array of objects: I realize they are two different queries, but when I run the second query through another client it does return results. I included the version using "$in" to demonstrate that the query as set up in Java isn't broken. I am currently running against MongoDB version 1.6.3 on Windows. |
| Comments |
| Comment by Robert Widmer [ 29/Feb/12 ] | ||||||||||||||
|
Alright, thank you for looking in to it. It must just be something with how coldfusion interfaces with the driver. | ||||||||||||||
| Comment by Jeffrey Yemin [ 29/Feb/12 ] | ||||||||||||||
|
Here's a Java program that demonstrates that it works properly using the Java driver (I tested with 2.7.3):
which prints out
| ||||||||||||||
| Comment by Robert Widmer [ 29/Feb/12 ] | ||||||||||||||
|
Hi Scott, | ||||||||||||||
| Comment by Scott Hernandez (Inactive) [ 29/Feb/12 ] | ||||||||||||||
|
Can you include a java class which inserts the test data, and does the queries which don't work? Also, a mongo javascript shell session would help showing it working. |