From da6775b4ebee9ab4e8b76848bafdcdd31db189f9 Mon Sep 17 00:00:00 2001 From: faberf Date: Mon, 23 Sep 2024 17:38:18 +0200 Subject: [PATCH] bugfix pgvector cant store null --- .../kotlin/org/vitrivr/engine/database/pgvector/Utilities.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 81d3dd31d..1cf69d6b4 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.