Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Features
~~~~~~~~
- Handle error code ``-10735`` as ``ClientConnectionError``
- Handle ``HANA Database instance resize in progress`` as ``DatabaseConnectNotPossibleError``
- Remove error code restriction from ``NumberOfTransactionsExceededError``

4.3.0
-----
Expand Down
6 changes: 1 addition & 5 deletions sqlalchemy_hana/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,7 @@ def convert_dbapi_error(dbapi_error: DBAPIError) -> DBAPIError:
return WriteInReadOnlyReplicationError.from_dbapi_error(dbapi_error)
if error.errorcode == 597:
return SessionContextError.from_dbapi_error(dbapi_error)
# 128 -> ERR_TX: Transaction error
if (
error.errorcode == 128
and "exceed maximum number of transactions" in error.errortext
):
if "exceed maximum number of transactions" in error.errortext:
return NumberOfTransactionsExceededError.from_dbapi_error(dbapi_error)
# 149 -> ERR_TX_DIST_2PC_FAILURE
if error.errorcode == 149:
Expand Down
Loading