diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-05-08 02:21:57 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-06-08 12:57:21 -0400 |
commit | c99fc44e170be61696206872701ff75e4c8a3711 (patch) | |
tree | 6bd437739570339483d591ce48158ef2a5465214 /lib/sqlalchemy/sql/compiler.py | |
parent | 65b3f4aaa072438006f90033a413f10b911ba717 (diff) | |
download | sqlalchemy-c99fc44e170be61696206872701ff75e4c8a3711.tar.gz |
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
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
0 files changed, 0 insertions, 0 deletions