From d16372c88d4b9bc60528aa036ed1163ac5dc4d5d Mon Sep 17 00:00:00 2001 From: rarnu Date: Tue, 5 May 2026 23:38:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=89=E5=85=88=E5=89=8D=E7=9A=84?= =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E9=87=8D=E6=96=B0=E4=BF=AE=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=8B=EF=BC=8C=E7=9B=AE=E5=89=8D=E5=85=88=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=98=AF=E5=90=A6UUID=EF=BC=8C=E8=80=8C?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E5=85=88=E8=B5=B0fallback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/dbx-core/src/db/postgres.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/dbx-core/src/db/postgres.rs b/crates/dbx-core/src/db/postgres.rs index 437cec739..3f5a14d88 100644 --- a/crates/dbx-core/src/db/postgres.rs +++ b/crates/dbx-core/src/db/postgres.rs @@ -63,6 +63,13 @@ fn pg_value_to_json(row: &PgRow, idx: usize, type_name: &str) -> serde_json::Val .unwrap_or(serde_json::Value::Null); } + if upper == "UUID" { + return row + .try_get::(idx) + .map(|v| serde_json::Value::String(v.to_string())) + .unwrap_or(serde_json::Value::Null); + } + row.try_get::(idx) .map(serde_json::Value::String) .or_else(|_| row.try_get::(idx).map(|v| serde_json::Value::Number(v.into())))