Forget it, it's a problem with my python setup that im trying to find.
Thanks anyway.
On Wednesday, October 8, 2014 3:14:23 PM UTC-3, Marty wrote:
>
> I have a column defined as
>
> class Balance(Base):
> ..
> amount = Column(DECIMAL('16,8'), default=Decimal('0'))
> ..
>
>
> o = db.query(Balance).get(1)
>
>
> Everything goes fine ...
>
> type(o.amount) => 'Decimal'
>
> but
>
> isinstance(o.amount, Decimal) => False
>
>
> Im porting from a noSql database and somewhere in the code i have a call
> to Decimal.quantize that check types using "isinstance"
>
>
> Question: How do i pass the isinstance check with an instance of Column?
>
>
>
>
--
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.