[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Use the "committed" values when extracting many-to-
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2016-06-08 17:18:53
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/c99fc44e170b/ Changeset: c99fc44e170b Branch: None User: zzzeek Date: 2016-06-08 16:57:21+00:00 Summary: Use the "committed" values when extracting many-to-one lazyload value The scalar object set() method calls upon the lazy loader to get at the "old" value of the attriute, however doesn't ensure that the "committed" value of the foreign key attributes is used. If the user has manipulated these attributes and they themselves have pending, non committed changes, we get the "new" value which these attributes would have set up if they were flushed. "old" vs "new" value is always about how the value has changed since the load, so we always have to use the DB-persisted values for everything when looking for "old". Change-Id: I82bdc40ad0cf033c3a98f3361776cf3161542cd6 Fixes: #3708 Affected #: 4 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |