]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- some clarifications and fixes to merge(instance, dont_load=True).
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 23 Nov 2007 05:24:32 +0000 (05:24 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 23 Nov 2007 05:24:32 +0000 (05:24 +0000)
commit41403b79300fb65125ab8bde00efbec9eaa89d43
tree5d4e41b95b84c0a63ec178eb647bcd698bdcd51c
parent56d14df0ebce6055356ea090cffe1b9ee91d592c
- some clarifications and fixes to merge(instance, dont_load=True).
fixed bug where lazy loaders were getting disabled on returned instances.
Also, we currently do not support merging an instance which has uncommitted
changes on it, in the case that dont_load=True is used....this will
now raise an error.  This is due to complexities in merging the
"committed state" of the given instance to correctly correspond to the
newly copied instance.  Since the use case for dont_load=True is
caching, the given instances shouldn't have any uncommitted changes on them
anyway.
CHANGES
lib/sqlalchemy/orm/session.py
test/orm/merge.py