Skip to content

Commit

Permalink
Handle 'temp index no exists' error (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasium authored Sep 10, 2024
1 parent aa89893 commit 7fb7856
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
Changelog
=========


2.7.0
-----

Features
~~~~~~~~

- ``sqlalchemy_hana.errors`` will now raise a ``StatementExecutionError``if the messages contains
``temp index not exists``

2.6.0
-----

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "sqlalchemy-hana"
version = "2.6.0"
version = "2.7.0"
description = "SQLAlchemy dialect for SAP HANA"
keywords = ["sqlalchemy", "sap", "hana"]
requires-python = "~=3.8"
Expand Down Expand Up @@ -126,6 +126,7 @@ disable = [
"too-many-lines",
"too-many-branches",
"too-many-return-statements",
"too-many-boolean-expressions",
"duplicate-code",
]

Expand Down
1 change: 1 addition & 0 deletions sqlalchemy_hana/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def convert_dbapi_error(dbapi_error: DBAPIError) -> DBAPIError:
or "Exception in executor plan" in error.errortext
or "DTX commit(first phase commit) failed" in error.errortext
or "An error occurred while reading from the channel" in error.errortext
or "temp index not exists" in error.errortext
):
return StatementExecutionError.from_dbapi_error(dbapi_error)
if error.errorcode == 397:
Expand Down

0 comments on commit 7fb7856

Please sign in to comment.