From 1ec405f9fc98145e4efe0e2f84caffe09ea76f87 Mon Sep 17 00:00:00 2001 From: Ralph Gasser Date: Sat, 4 Nov 2023 11:49:47 +0100 Subject: [PATCH] Bugfix. --- .../kotlin/org/vitrivr/cottontail/dbms/entity/DefaultEntity.kt | 3 +++ 1 file changed, 3 insertions(+) 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 94bbae88e..aa37df159 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 @@ -93,6 +93,9 @@ class DefaultEntity(override val name: Name.EntityName, override val parent: Def if (it.getSearchKeyRange(NameBinding.Entity.toEntry(this@DefaultEntity.name)) != null) { do { val columnName = NameBinding.Column.fromEntry(it.key) + if (columnName.entity() != this@DefaultEntity.name) { + break + } val columnEntry = ColumnMetadata.fromEntry(it.value) val columnDef = ColumnDef(columnName, columnEntry.type, columnEntry.nullable, columnEntry.primary, columnEntry.primary) if (columnDef.type is Types.String || columnDef.type is Types.ByteString) {