[sqlalchemy] When is 'default' applied?

2010-10-15 Thread Michael Hipp
If I have a column defined like this: qty = Column(Numeric, nullable=False, default=Decimal('1')) When is the default applied? At commit()? Michael -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to

Re: [sqlalchemy] When is 'default' applied?

2010-10-15 Thread Michael Hipp
On 10/15/2010 5:30 PM, Michael Hipp wrote: If I have a column defined like this: qty = Column(Numeric, nullable=False, default=Decimal('1')) When is the default applied? At commit()? Nevermind. Finally found it in the docs, appears it happens at INSERT time. Thanks, Michael -- You received