Hi, the query session.query(func.sum(MyModel.amount)).scalar()
with MyModel.amount = Column(SmallInteger, nullable=False) returns a Decimal instead of an integer when using mysql with the default driver (as well as with the cymysql driver). How can I get this query to return an integer? And why can't it return an integer automatically? Thanks in advance -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.
