[sqlalchemy] Enforce range on Column(Numeric)

2011-10-28 Thread Michael Hipp
Could someone point me to a doc page that explains how to enforce a range limit on a Numeric type. I have some monetary values that I want to force to always be = Decimal('0.00'). Thanks, Michael -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To

Re: [sqlalchemy] Enforce range on Column(Numeric)

2011-10-28 Thread Michael Bayer
use a TypeDecorator like http://www.sqlalchemy.org/docs/core/types.html#rounding-numerics and change the rounding part to raise an error. On Oct 28, 2011, at 6:27 PM, Michael Hipp wrote: Could someone point me to a doc page that explains how to enforce a range limit on a Numeric type. I