From af47a68a330ae5842983f9e7bfc443fd184352e9 Mon Sep 17 00:00:00 2001 From: Kamun Rustem Date: Sun, 14 Feb 2021 16:10:14 -0800 Subject: [PATCH] fallback to NullType when dialect type not found --- snowdialect.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snowdialect.py b/snowdialect.py index 2d744371..02d647cd 100644 --- a/snowdialect.py +++ b/snowdialect.py @@ -380,8 +380,7 @@ def _get_schema_columns(self, connection, schema, **kw): (sqltypes.String, sqltypes.BINARY)): col_type_kw['length'] = character_maximum_length - type_instance = col_type(**col_type_kw) - + type_instance = col_type if isinstance(col_type, sqltypes.NullType) else col_type(**col_type_kw) current_table_pks = schema_primary_keys.get(table_name) ans[table_name].append({