Skip to content

Commit e0315bc

Browse files
committed
Changing autoincrement from always to by default
1 parent 20168aa commit e0315bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/databricks/sqlalchemy/dialect

src/databricks/sqlalchemy/dialect/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def visit_create_table(self, create, **kw):
102102
create_column, first_pk=column.primary_key and not first_pk
103103
)
104104
if column.autoincrement is True: # If doesn't work try 'is True' and == 'True'
105-
processed = "`".join(processed.split("`")[:-1]) + "` " + "BIGINT GENERATED ALWAYS AS IDENTITY"
105+
processed = "`".join(processed.split("`")[:-1]) + "` " + "BIGINT GENERATED BY DEFAULT AS IDENTITY"
106106
if processed is not None:
107107
text += separator
108108
separator = ", \n"

0 commit comments

Comments
 (0)