Make sure the enum value column is casted to int before calculating the maximum value. Closes #2109.
Authored by: jonas 2005-09-25
Parent: [r2296]
Child: [r2298]