]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- the in-flush check for "pending orphan being flushed" has been removed.
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Nov 2010 19:52:21 +0000 (14:52 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 Nov 2010 19:52:21 +0000 (14:52 -0500)
commit5c611f702cf1df6e072ddf17040c20e3a5fb96de
tree66a0dec56a12828791ba8ffedbf78f5ce2f75d8e
parent9ed764650ccad83bbc03668e9b4f2fd88b328395
- the in-flush check for "pending orphan being flushed" has been removed.
It's now possible to issue INSERT for an object that would otherwise
be an orphan due to no parent object specified, along a relationship
that specifies "delete-orphan" cascade.  The detection of this condition
as an error should now be accomplished via NOT NULL foreign keys.
[ticket:1912]
lib/sqlalchemy/orm/session.py
test/orm/inheritance/test_basic.py
test/orm/inheritance/test_polymorph.py
test/orm/test_cascade.py