Skip to content

Commit

Permalink
fix render
Browse files Browse the repository at this point in the history
  • Loading branch information
ea-rus committed Sep 2, 2024
1 parent 7d4993d commit cae4126
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mindsdb_sql/render/sqlalchemy_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,8 @@ def prepare_create_table(self, ast_query):
if col.default is not None:
if isinstance(col.default, str):
default = sa.text(col.default)
if col.type.lower() == 'serial':

if isinstance(col.type, str) and col.type.lower() == 'serial':
col.is_primary_key = True
col.type = 'INT'

Expand Down

0 comments on commit cae4126

Please sign in to comment.