#3382: enumeration values should be numeric
-----------------------------------------+----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: ticket system | Version: devel
Severity: normal | Keywords:
-----------------------------------------+----------------------------------
If one specifies more than 9 items for a AbstractEnum subclass, it becomes
apparent that the order used is lexicographic instead of numeric. Which is
of course undesirable.
The quick fix (at least for postgres) was to add a
CAST (value AS NUMERIC)
at the respective locations( '''model.py''' and '''query.py''')
The better solution would be to use a numeric type as '''value''' the
first hand.
--
Ticket URL: <http://trac.edgewall.org/ticket/3382>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets