[Bugs] #1342 UNSP: range queries use lexical comparison, not numerical
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Sun Sep 13 17:39:26 EDT 2009
#1342: range queries use lexical comparison, not numerical
------------------------------------------+---------------------------------
Reporter: sascha_silbe | Owner: sascha_silbe
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: 0.86
Component: sugar-datastore | Version: Git as of bugdate
Severity: Minor | Keywords: r?
Distribution: Unspecified | Status_field: Assigned
------------------------------------------+---------------------------------
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).
--
Ticket URL: <http://dev.sugarlabs.org/ticket/1342>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list