2 messages in com.googlegroups.sqlalchemy[sqlalchemy] Re: SQL function on sess...
FromSent OnAttachments
Denis Shaposhnikov28 Dec 2006 03:02 
Michael Bayer28 Dec 2006 08:56 
Subject:[sqlalchemy] Re: SQL function on session.flush()
From:Michael Bayer (zzz@gmail.com)
Date:12/28/2006 08:56:03 AM
List:com.googlegroups.sqlalchemy

probably the most straightforward way is to use a MapperExtension with before_update() overridden to place the current timestamp in the "change" field of the instance, either by using a Python datetime function or by calling func.current.timestamp(). then that value will get sent in on the update. it wont inline the CURRENT_TIMESTAMP() call into the UPDATE but it will have the same end effect.