Skip to content

Commit

Permalink
Merge pull request #399 from mindsdb/staging
Browse files Browse the repository at this point in the history
Release 0.18.1
  • Loading branch information
ea-rus authored Sep 2, 2024
2 parents 53405b5 + bea9557 commit 66aae44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mindsdb_sql/__about__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = 'mindsdb_sql'
__package_name__ = 'mindsdb_sql'
__version__ = '0.18.0'
__version__ = '0.18.1'
__description__ = "Pure python SQL parser"
__email__ = "[email protected]"
__author__ = 'MindsDB Inc'
Expand Down
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 66aae44

Please sign in to comment.