Re: [sqlalchemy] Re: onupdate not working with postgresql

2011-07-02 Thread Kartik Lakhotia
It was exactly da same problem i was facing.. Thaks a lot moodi. I got dis now -- 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

[sqlalchemy] Re: onupdate not working with postgresql

2011-07-01 Thread Kartik Lakhotia
Sorry, i left a half finished message by mistake. I have described a column as : updated = Column(DateTime, onupdate = datetime.datetime.now()) But it leaves the field value null when any row is updated. I have also tried using func.current_Timestamp but that doesnt work either. -- You

[sqlalchemy] Re: onupdate not working with postgresql

2011-07-01 Thread Moodi
I too faced a similar problem. Spent a lot of time just to figure out that - *These update functions do not work when you try to update the table directly from database. *And actually they should not, as postgres does not provide such feature in its database When I tried updating from