Ticket #1342 (closed defect: fixed)
range queries use lexical comparison, not numerical
| Reported by: | sascha_silbe | Owned by: | sascha_silbe |
|---|---|---|---|
| Priority: | Normal | Milestone: | 0.88 |
| Component: | sugar-datastore | Version: | Git as of bugdate |
| Severity: | Minor | Keywords: | r+ |
| Cc: | Distribution/OS: | Unspecified | |
| Bug Status: | Assigned |
Description
While adding a range query example to the test suite I discovered a bug: Range queries currently do lexical comparisons, not a numerical ones. This means that a range query of 9000..11000 will _not_ match 10000.
For the current code this is a minor issue as only the 'timestamp' property supports range queries and all dates between about mid-2001 and 2033 have exactly ten digits (so for regular Journal entries it shouldn't make any difference).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

