]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added a new directive used within the scope of an attribute "set" operation
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Feb 2014 00:57:38 +0000 (19:57 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Feb 2014 00:57:38 +0000 (19:57 -0500)
commit33c7cfff6eb1b8d93dee3b4a76f4cac38c772d77
tree9db95f480f5d7f1db1322c855f907bef6bf73e0e
parent6b3ecd14eae1a557cffd19da6c82d967586a6d74
- Added a new directive used within the scope of an attribute "set" operation
to disable autoflush, in the case that the attribute needs to lazy-load
the "old" value, as in when replacing one-to-one values or some
kinds of many-to-one.  A flush at this point otherwise occurs
at the point that the attribute is None and can cause NULL violations.
[ticket:2921]
doc/build/changelog/changelog_09.rst
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/strategies.py
test/orm/test_cascade.py