[Sqlalchemy-commits] commit/sqlalchemy: 2 new changesets
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2015-11-19 20:47:27
|
2 new commits in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/a6fe4dc0c8eb/ Changeset: a6fe4dc0c8eb Branch: None User: zzzeek Date: 2015-11-19 20:45:17+00:00 Summary: - A rare case which occurs when a :meth:`.Session.rollback` fails in the scope of a :meth:`.Session.flush` operation that's raising an exception, as has been observed in some MySQL SAVEPOINT cases, prevents the original database exception from being observed when it was emitted during flush, but only on Py2K because Py2K does not support exception chaining; on Py3K the originating exception is chained. As a workaround, a warning is emitted in this specific case showing at least the string message of the original database error before we proceed to raise the rollback-originating exception. fixes #2696 Affected #: 4 files https://bitbucket.org/zzzeek/sqlalchemy/commits/caef13d8cf01/ Changeset: caef13d8cf01 Branch: rel_1_0 User: zzzeek Date: 2015-11-19 20:45:47+00:00 Summary: - A rare case which occurs when a :meth:`.Session.rollback` fails in the scope of a :meth:`.Session.flush` operation that's raising an exception, as has been observed in some MySQL SAVEPOINT cases, prevents the original database exception from being observed when it was emitted during flush, but only on Py2K because Py2K does not support exception chaining; on Py3K the originating exception is chained. As a workaround, a warning is emitted in this specific case showing at least the string message of the original database error before we proceed to raise the rollback-originating exception. fixes #2696 (cherry picked from commit a6fe4dc0c8ebc346a90dd849a86dac9345d74515) Affected #: 4 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |