Edgewall Software
Modify

Opened 18 years ago

Closed 18 years ago

#3382 closed defect (duplicate)

enumeration values should be numeric

Reported by: diez.roggisch@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: devel
Severity: normal Keywords: postgresql
Cc: elmar.fasel@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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.

Attachments (0)

Change History (3)

comment:1 by anonymous, 18 years ago

Cc: elmar.fasel@… added

comment:2 by Emmanuel Blot, 18 years ago

See also #3544.

comment:3 by Christian Boos, 18 years ago

Keywords: postgresql added
Resolution: duplicate
Status: newclosed

Duplicate of #3544 and #3490 (see that one for the resolution info).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.