From 36f9eadf776d5b9c737b810d6d7c0a4e7cef2dfb Mon Sep 17 00:00:00 2001 From: liyuanyang Date: Thu, 17 Sep 2026 17:34:58 +0800 Subject: [PATCH] fix(test): resolve parameter type inconsistency in HNSW semantics test Use separate parameters for UUID and text representation instead of casting $1::text, which caused PostgreSQL to fail type deduction. --- server/internal/search/hnsw_semantics_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/search/hnsw_semantics_test.go b/server/internal/search/hnsw_semantics_test.go index 87a9d43..875c349 100644 --- a/server/internal/search/hnsw_semantics_test.go +++ b/server/internal/search/hnsw_semantics_test.go @@ -58,7 +58,7 @@ func TestTextANNFileSemanticsPostgres(t *testing.T) { t.Helper() id := uuid.New() _, err := database.Pool.Exec(ctx, `INSERT INTO files(id,user_id,name,path,size,sha256,mime,storage_key,created_at,timeline_at) - VALUES($1,$2,'fixture', $3,0,'fixture',$4,$1::text,$5,$5)`, id, user, path, mime, at) + VALUES($1,$2,'fixture',$3,0,'fixture',$4,$5,$6,$6)`, id, user, path, mime, id.String(), at) if err != nil { t.Fatal(err) }