]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed bug where a newly inserted instance that is rolled back
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Mar 2016 21:56:57 +0000 (17:56 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Mar 2016 21:56:57 +0000 (17:56 -0400)
commitaf92f6763d72fa853f2ac0968e077c24e88b0c93
tree979bfa495212ce0b0720c86866cc451d6de06f44
parent6e5e64e27ef2c6a86c9aebdcefdf2cd726f1476a
- Fixed bug where a newly inserted instance that is rolled back
would still potentially cause persistence conflicts on the next
transaction, because the instance would not be checked that it
was expired.   This fix will resolve a large class of cases that
erronously cause the "New instance with identity X conflicts with
persistent instance Y" error.
fixes #3677
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/orm/unitofwork.py
test/orm/test_transaction.py