Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.

Commit ffafff2

Browse files
committed
Getting table comment is broken if it's not supported (#11)
1 parent b8e9aff commit ffafff2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

sqlalchemy_trino/dialect.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ def get_table_comment(self, connection: Connection,
222222
error.NOT_FOUND,
223223
error.COLUMN_NOT_FOUND,
224224
error.TABLE_NOT_FOUND,
225+
error.NOT_SUPPORTED
225226
):
226227
return dict(text=None)
227228
raise

sqlalchemy_trino/error.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
TABLE_NOT_FOUND = 'TABLE_NOT_FOUND'
99
SCHEMA_NOT_FOUND = 'SCHEMA_NOT_FOUND'
1010
CATALOG_NOT_FOUND = 'CATALOG_NOT_FOUND'
11+
NOT_SUPPORTED = 'NOT_SUPPORTED'
1112

1213
MISSING_TABLE = 'MISSING_TABLE'
1314
MISSING_COLUMN_NAME = 'MISSING_COLUMN_NAME'

0 commit comments

Comments
 (0)