From 8f78c2c882f23d441aecb37ff74b7e4a6c4d4478 Mon Sep 17 00:00:00 2001 From: rarnu Date: Tue, 5 May 2026 22:49:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DPostgres=E7=9A=84UUID?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=AD=97=E6=AE=B5=E8=A2=AB=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=B8=BANULL=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/dbx-core/src/db/postgres.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/dbx-core/src/db/postgres.rs b/crates/dbx-core/src/db/postgres.rs index 2074597d9..437cec739 100644 --- a/crates/dbx-core/src/db/postgres.rs +++ b/crates/dbx-core/src/db/postgres.rs @@ -73,6 +73,7 @@ fn pg_value_to_json(row: &PgRow, idx: usize, type_name: &str) -> serde_json::Val }) }) .or_else(|_| row.try_get::(idx).map(serde_json::Value::Bool)) + .or_else(|_| row.try_get::(idx).map(|v| serde_json::Value::String(v.to_string()))) .or_else(|e| pg_temporal_to_json_value(row, idx).ok_or(e)) .unwrap_or(serde_json::Value::Null) }