]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add safe_reraise() + warnings only to Connection._autorollback
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Mar 2017 14:52:58 +0000 (10:52 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Mar 2017 15:15:41 +0000 (11:15 -0400)
commit08f42a915a40756dc9222077ea41cdd32c079b4b
tree317b78caa55a3fded650c978265ca3a3c5b5beb1
parent7a6cc6e897d85d7acb7a3eddf92620d6f330e8ce
Add safe_reraise() + warnings only to Connection._autorollback

Added an exception handler that will warn for the "cause" exception on
Py2K when the "autorollback" feature of :class:`.Connection` itself
raises an exception. In Py3K, the two exceptions are naturally reported
by the interpreter as one occurring during the handling of the other.
This is continuing with the series of changes for rollback failure
handling that were last visited as part of :ticket:`2696` in 1.0.12.

Change-Id: I600ba455a14ebaea27c6189889181f97c632f179
Fixes: #3946
(cherry picked from commit c0a224aba3d4e2a41f92a29f9d18c6cb9d09d61f)
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/util/langhelpers.py
test/engine/test_execute.py
test/engine/test_reconnect.py