]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed bug in 0.6-reworked "many-to-one" optimizations
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 14 Mar 2010 01:05:17 +0000 (20:05 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 14 Mar 2010 01:05:17 +0000 (20:05 -0500)
commitc03b434104368b1c025f45987d7a3fa8048d5e37
treec62ed04c0b120d7aa3d0c7173228989f7ea62990
parent11a8939f365114ca55a75ebb6f03008fdf04ee6b
- Fixed bug in 0.6-reworked "many-to-one" optimizations
such that a many-to-one that is against a non-primary key
column on the remote table (i.e. foreign key against a
UNIQUE column) will pull the "old" value in from the
database during a change, since if it's in the session
we will need it for proper history/backref accounting,
and we can't pull from the local identity map on a
non-primary key column. [ticket:1737] (test is pending)
CHANGES
lib/sqlalchemy/orm/strategies.py