Skip to content

Commit

Permalink
Getting table comment is broken if it's not supported (dungdm93#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
youngwookim committed May 2, 2021
1 parent b8e9aff commit ffafff2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions sqlalchemy_trino/dialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def get_table_comment(self, connection: Connection,
error.NOT_FOUND,
error.COLUMN_NOT_FOUND,
error.TABLE_NOT_FOUND,
error.NOT_SUPPORTED
):
return dict(text=None)
raise
Expand Down
1 change: 1 addition & 0 deletions sqlalchemy_trino/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
TABLE_NOT_FOUND = 'TABLE_NOT_FOUND'
SCHEMA_NOT_FOUND = 'SCHEMA_NOT_FOUND'
CATALOG_NOT_FOUND = 'CATALOG_NOT_FOUND'
NOT_SUPPORTED = 'NOT_SUPPORTED'

MISSING_TABLE = 'MISSING_TABLE'
MISSING_COLUMN_NAME = 'MISSING_COLUMN_NAME'
Expand Down

0 comments on commit ffafff2

Please sign in to comment.