[JAVA-3893] Cannot use comparison operators with dates Created: 20/Nov/20 Updated: 27/Oct/23 Resolved: 20/Nov/20 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Elyes Gherib | Assignee: | Unassigned |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
I'm trying to query documents with a date lesser than or equal to a given query date. Here's the query as written in a Spring Data repository (Java):
"?0" being the first parameter passed to the repository's method, of type java.util.Date.
The query is translated by the driver into this query:
The result of the query is on screenshot "screen 2". No documents are returned. I rewrote the same query using another syntax:
And the documents are returned (screenshot "screen 2").
Is this a bug or a feature?
Environment:
Thanks!
|
| Comments |
| Comment by Elyes Gherib [ 20/Nov/20 ] |
|
Can you please delete this case? Problem solved. Thanks |