> Column('last_updated', DateTime, PassiveDefault(func.current_timestamp
> ()), onupdate=func.current_timestamp())
>
> Maybe I don't understand how onupdate works.
> I would like to have this column to be changed every time the row is
> updated,
> but it doesn't work.
>

I just use something like:

Column('last_updated', DateTime, onupdate=datetime.now)

I haven't tried it with the func but it should work I would think.

Michael

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

Reply via email to