]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added support for the case of the misbehaving DBAPI that has
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 May 2015 16:35:21 +0000 (12:35 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 May 2015 16:38:28 +0000 (12:38 -0400)
commitd178707ecaeb547470e2b7b37b9a939abc69cbd0
treedc4b674748cf673a123b90797c3525c3a13ef657
parent64c1f2e5688879e1cc087f4e4a893d32267fd1fb
- Added support for the case of the misbehaving DBAPI that has
pep-249 exception names linked to exception classes of an entirely
different name, preventing SQLAlchemy's own exception wrapping from
wrapping the error appropriately.
The SQLAlchemy dialect in use needs to implement a new
accessor :attr:`.DefaultDialect.dbapi_exception_translation_map`
to support this feature; this is implemented now for the py-postgresql
dialect.
fixes #3421
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/postgresql/pypostgresql.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/interfaces.py
lib/sqlalchemy/exc.py
lib/sqlalchemy/testing/suite/__init__.py
lib/sqlalchemy/testing/suite/test_dialect.py [new file with mode: 0644]
test/base/test_except.py