This returns a Decimal type for c2, which is what I want:
c1 = literal(5, type_=Numeric)
c2 = func.sum(c1, type_=Numeric)

This returns a Float type for c2, but I'm telling c1 that it is a
Numeric.  How can I get a decimal returned when using an if function?
c1 = func.if_(Table.foo != None, Table.foo, Table.bar, type_=Numeric)
c2 = func.sum(c1, type_=Numeric)

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to