diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-11-19 15:45:17 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-11-19 15:45:17 -0500 |
| commit | a6fe4dc0c8ebc346a90dd849a86dac9345d74515 (patch) | |
| tree | e3411c2a3ede5e942d3a5ea65c635dfe7cd2e745 /doc | |
| parent | 1dc805dd4d902b9204703f0bd6151c58f1f287af (diff) | |
| download | sqlalchemy-a6fe4dc0c8ebc346a90dd849a86dac9345d74515.tar.gz | |
- 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
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/build/changelog/changelog_10.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/build/changelog/changelog_10.rst b/doc/build/changelog/changelog_10.rst index c800647a6..40a251a22 100644 --- a/doc/build/changelog/changelog_10.rst +++ b/doc/build/changelog/changelog_10.rst @@ -19,6 +19,21 @@ :version: 1.0.10 .. change:: + :tags: bug, orm + :versions: 1.1.0b1 + :tickets: 2696 + + 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. + + .. change:: :tags: bug, postgresql :versions: 1.1.0b1 :tickets: 3571 |
