Skip to content

Commit

Permalink
fallback to NullType when dialect type not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustem committed Feb 15, 2021
1 parent ba0210a commit 886afd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion snowdialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,10 @@ def _get_schema_columns(self, connection, schema, **kw):
elif issubclass(col_type,
(sqltypes.String, sqltypes.BINARY)):
col_type_kw['length'] = character_maximum_length
else:
col_type = sqltypes.NULLTYPE

type_instance = col_type(**col_type_kw)

current_table_pks = schema_primary_keys.get(table_name)

ans[table_name].append({
Expand Down

0 comments on commit 886afd0

Please sign in to comment.