Skip to content

Commit 3fd4236

Browse files
committed
fix CreateTable: add types for any sqlalchemy type
1 parent 78e1382 commit 3fd4236

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mindsdb_sql_parser/ast/create.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def get_string(self, *args, **kwargs):
9595
type = 'float'
9696
elif issubclass(col.type, sa_types.Text):
9797
type = 'text'
98+
elif hasattr(col.type, '__visit_name__'):
99+
type = col.type.__visit_name__
98100
else:
99101
type = str(col.type)
100102
if col.length is not None:

0 commit comments

Comments
 (0)