Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 449bca9

Browse files
committed
Another if logic change
1 parent ff5ebed commit 449bca9

File tree

1 file changed

+1
-1
lines changed
  • src/databricks/sqlalchemy/dialect

1 file changed

+1
-1
lines changed

src/databricks/sqlalchemy/dialect/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def visit_create_table(self, create, **kw):
101101
processed = self.process(
102102
create_column, first_pk=column.primary_key and not first_pk
103103
)
104-
if column.autoincrement == "True": # If doesn't work try 'is True' and == 'True'
104+
if column.autoincrement is True: # If doesn't work try 'is True' and == 'True'
105105
processed = "`".join(processed.split("`")[:-1]) + "`" + "BIGINT GENERATED ALWAYS AS IDENTITY"
106106
if processed is not None:
107107
text += separator

0 commit comments

Comments
 (0)