summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-12-05 12:12:44 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-12-05 12:12:44 -0500
commit41e7253dee168b8c26c4993d27aac11f98c7f9e3 (patch)
tree0c97662e5636b64de7d1c15781dd2b291c162f78 /doc
parent6e53e866dea4eba630128e856573ca1076b91611 (diff)
downloadsqlalchemy-41e7253dee168b8c26c4993d27aac11f98c7f9e3.tar.gz
- The engine-level error handling and wrapping routines will now
take effect in all engine connection use cases, including when user-custom connect routines are used via the :paramref:`.create_engine.creator` parameter, as well as when the :class:`.Connection` encounters a connection error on revalidation. fixes #3266
Diffstat (limited to 'doc')
-rw-r--r--doc/build/changelog/changelog_10.rst15
-rw-r--r--doc/build/changelog/migration_10.rst23
2 files changed, 38 insertions, 0 deletions
diff --git a/doc/build/changelog/changelog_10.rst b/doc/build/changelog/changelog_10.rst
index b71ecc15d..b8b513821 100644
--- a/doc/build/changelog/changelog_10.rst
+++ b/doc/build/changelog/changelog_10.rst
@@ -23,6 +23,21 @@
on compatibility concerns, see :doc:`/changelog/migration_10`.
.. change::
+ :tags: bug, engine
+ :tickets: 3266
+
+ The engine-level error handling and wrapping routines will now
+ take effect in all engine connection use cases, including
+ when user-custom connect routines are used via the
+ :paramref:`.create_engine.creator` parameter, as well as when
+ the :class:`.Connection` encounters a connection error on
+ revalidation.
+
+ .. seealso::
+
+ :ref:`change_3266`
+
+ .. change::
:tags: feature, oracle
New Oracle DDL features for tables, indexes: COMPRESS, BITMAP.
diff --git a/doc/build/changelog/migration_10.rst b/doc/build/changelog/migration_10.rst
index 27a4fae4c..15e066a75 100644
--- a/doc/build/changelog/migration_10.rst
+++ b/doc/build/changelog/migration_10.rst
@@ -872,6 +872,29 @@ labeled uniquely.
:ticket:`3170`
+.. _change_3266:
+
+DBAPI exception wrapping and handle_error() event improvements
+--------------------------------------------------------------
+
+SQLAlchemy's wrapping of DBAPI exceptions was not taking place in the
+case where a :class:`.Connection` object was invalidated, and then tried
+to reconnect and encountered an error; this has been resolved.
+
+Additionally, the recently added :meth:`.ConnectionEvents.handle_error`
+event is now invoked for errors that occur upon initial connect, upon
+reconnect, and when :func:`.create_engine` is used given a custom connection
+function via :paramref:`.create_engine.creator`.
+
+The :class:`.ExceptionContext` object has a new datamember
+:attr:`.ExceptionContext.engine` that will always refer to the :class:`.Engine`
+in use, in those cases when the :class:`.Connection` object is not available
+(e.g. on initial connect).
+
+
+:ticket:`3266`
+
+
.. _behavioral_changes_orm_10:
Behavioral Changes - ORM