diff --git a/vitrivr-engine-module-pgvector/src/main/kotlin/org/vitrivr/engine/database/pgvector/Utilities.kt b/vitrivr-engine-module-pgvector/src/main/kotlin/org/vitrivr/engine/database/pgvector/Utilities.kt index 81d3dd31..1cf69d6b 100644 --- a/vitrivr-engine-module-pgvector/src/main/kotlin/org/vitrivr/engine/database/pgvector/Utilities.kt +++ b/vitrivr-engine-module-pgvector/src/main/kotlin/org/vitrivr/engine/database/pgvector/Utilities.kt @@ -57,7 +57,7 @@ internal fun Type.toSql(): Int = when (this) { is Type.FloatVector -> JDBCType.ARRAY is Type.IntVector -> JDBCType.ARRAY is Type.LongVector -> JDBCType.ARRAY -}.ordinal +}.vendorTypeNumber /** * Converts a [Distance] to a pgVector distance operator.