25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
fix(postgres): use single-name search_path
t8y24a93abd1b9e1
diff --git a/crates/dbx-core/src/db/postgres.rs b/crates/dbx-core/src/db/postgres.rsindex 218456fee8..c1e6fc82fa 100644--- a/crates/dbx-core/src/db/postgres.rs+++ b/crates/dbx-core/src/db/postgres.rs@@ -929,7 +929,7 @@ pub async fn execute_query_with_schema_and_max_rows() -> Result<QueryResult, String> {let client = pool.get().await.map_err(|e| e.to_string())?;client- .execute(&format!("SET search_path TO {}, public", pg_quote_ident(schema)), &[])+ .execute(&format!("SET search_path TO {}", pg_quote_ident(schema)), &[]).await.map_err(pg_error_to_string)?;diff --git a/crates/dbx-core/src/query.rs b/crates/dbx-core/src/query.rsindex 899a6669eb..e20a5fd81e 100644--- a/crates/dbx-core/src/query.rs+++ b/crates/dbx-core/src/query.rs@@ -1025,7 +1025,7 @@ async fn exec_tx_pg_inner(let had_schema = schema.is_some();if let Some(s) = schema {client- .execute(&format!("SET search_path TO {}, public", db::postgres::pg_quote_ident(s)), &[])+ .execute(&format!("SET search_path TO {}", db::postgres::pg_quote_ident(s)), &[]).await.map_err(|e| format!("SET search_path failed: {}", e))?;}