diff --git a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt index 61f8b966c..af363858c 100644 --- a/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt +++ b/cottontaildb-dbms/src/main/kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt @@ -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 {