If I understand you correctly, I would just do this: 1. Use 3 different columns for the value -- each a native data type. 2. Use `coalesce` to handle sorting 3. When displaying in sqlalchemy, just use a property to proxy displaying the set column (and explicitly work with the correct columns otherwise)
-- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.