Skip to content

Commit

Permalink
Fixes a bug in DefaultEntity which led to the autoIncrement flag bein…
Browse files Browse the repository at this point in the history
…g ignored.
  • Loading branch information
ppanopticon committed Dec 1, 2023
1 parent f7322e8 commit bcfb624
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class DefaultEntity(override val name: Name.EntityName, override val parent: Def
break
}
val columnEntry = ColumnMetadata.fromEntry(it.value)
val columnDef = ColumnDef(columnName, columnEntry.type, columnEntry.nullable, columnEntry.primary, columnEntry.primary)
val columnDef = ColumnDef(columnName, columnEntry.type, columnEntry.nullable, columnEntry.primary, columnEntry.autoIncrement)
if (columnDef.type is Types.String || columnDef.type is Types.ByteString) {
this.columns[columnName] = VariableLengthColumn(columnDef, this@DefaultEntity)
} else {
Expand Down

0 comments on commit bcfb624

Please sign in to comment.