From dfb5707dae454448ab3e34e9c4ffda13419ca76b Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 4 Jul 2014 15:40:47 -0400 Subject: - rework the entire approach to #3076. As we need to catch all exceptions in all cases unconditionally, the number of use cases that go beyond what dbapi_error() is expecting has gone too far for an 0.9 release. Additionally, the number of things we'd like to track is really a lot more than the five arguments here, and ExecutionContext is really not suitable as totally public API for this. So restore dbapi_error to its old version, deprecate, and build out handle_error instead. This is a lot more extensible and doesn't get in the way of anything compatibility-wise. --- lib/sqlalchemy/engine/__init__.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/sqlalchemy/engine/__init__.py') diff --git a/lib/sqlalchemy/engine/__init__.py b/lib/sqlalchemy/engine/__init__.py index fcb38b09c..9c6460858 100644 --- a/lib/sqlalchemy/engine/__init__.py +++ b/lib/sqlalchemy/engine/__init__.py @@ -54,6 +54,7 @@ from .interfaces import ( Connectable, Dialect, ExecutionContext, + ExceptionContext, # backwards compat Compiled, -- cgit v1.2.1