Skip to content

Commit af47a68

Browse files
committed
fallback to NullType when dialect type not found
1 parent ba0210a commit af47a68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

snowdialect.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,7 @@ def _get_schema_columns(self, connection, schema, **kw):
380380
(sqltypes.String, sqltypes.BINARY)):
381381
col_type_kw['length'] = character_maximum_length
382382

383-
type_instance = col_type(**col_type_kw)
384-
383+
type_instance = col_type if isinstance(col_type, sqltypes.NullType) else col_type(**col_type_kw)
385384
current_table_pks = schema_primary_keys.get(table_name)
386385

387386
ans[table_name].append({

0 commit comments

Comments
 (0)