Re: [sqlalchemy] refresh_flush is not triggered when only the primary key is updated

2016-08-02 Thread Lenar Imamutdinov
The only problem with after_flush() is that it's a session event. Why there is no such event on instance level? On Tuesday, August 2, 2016 at 4:37:19 PM UTC+3, Mike Bayer wrote: > > > > On 08/02/2016 04:24 AM, Lenar Imamutdinov wrote: > > Thank you for the comprehensive ans

Re: [sqlalchemy] refresh_flush is not triggered when only the primary key is updated

2016-08-02 Thread Lenar Imamutdinov
ept, primary keys are "first class" and > always get pulled no matter what, you can grab them in after_insert(), > for example. > > > > > > On 07/29/2016 04:25 AM, Lenar Imamutdinov wrote: > > Hello! > > > > Looks like the refresh_flush event

[sqlalchemy] refresh_flush is not triggered when only the primary key is updated

2016-07-29 Thread Lenar Imamutdinov
Hello! Looks like the refresh_flush event is not triggered when the only field to update after flush is the primary key fed from RETURNING clause. However it should, as far as I understand what is mentioned in the documentation. Environment: SQLAlchemy 1.0.14, PostgreSQL 9.5, Python 3.4 Here