Skip to content

Commit

Permalink
Handle unknown type_code for model contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 committed Oct 24, 2023
1 parent 35f46da commit 7b8aa2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/postgres/dbt/adapters/postgres/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,7 @@ def get_response(cls, cursor) -> AdapterResponse:

@classmethod
def data_type_code_to_name(cls, type_code: int) -> str:
return string_types[type_code].name
if type_code in string_types:
return string_types[type_code].name
else:
return f"unknown type_code {type_code}"

0 comments on commit 7b8aa2d

Please sign in to comment.