From 0a87dc8e037c4d7c61b8c566e9e9ca10e8b62308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E7=AB=A0=E6=B5=A9?= Date: Mon, 2 Nov 2026 22:55:06 +0800 Subject: [PATCH] =?UTF-8?q?test(library):=20=E4=BF=AE=E6=AD=A3D06=E5=8F=B0?= =?UTF-8?q?=E8=B4=A6=E8=AF=BB=E5=9B=9E=E7=9A=84SQL=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `SELECT to_jsonb(x)` 缺表别名,真实跑出 SQLSTATE 42703,基线抓取在启动第一个 新 PID 之前就中止。补 AS x,其余不变。 --- internal/releaseadapter/v071/formal_ds01_negative_r38_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/releaseadapter/v071/formal_ds01_negative_r38_test.go b/internal/releaseadapter/v071/formal_ds01_negative_r38_test.go index eff2159..094fff4 100644 --- a/internal/releaseadapter/v071/formal_ds01_negative_r38_test.go +++ b/internal/releaseadapter/v071/formal_ds01_negative_r38_test.go @@ -169,7 +169,7 @@ FROM library_jobs WHERE id=$1`, job.ID).Scan(&expired); err != nil { snap.MarkerCreates = proxy.markerCreates() snap.WireForwarded = wireForwarded() var row string - if err := gov.QueryRow(ctx, `SELECT to_jsonb(x)::text FROM library_index_restore_dispatch + if err := gov.QueryRow(ctx, `SELECT to_jsonb(x)::text FROM library_index_restore_dispatch AS x WHERE index_name=$1 AND document_id='chunk-target'`, fx.index).Scan(&row); err != nil { t.Fatal(err) }