Skip to content

armgit / dbx

Public Imported from GitHub
0

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。

fix(core): skip connection identity probe in snapshot test history

t8y256ec883fb795
diff --git a/crates/dbx-core/src/query/mod.rs b/crates/dbx-core/src/query/mod.rs
index 1da9e4871f..f8b5ecc355 100644
--- a/crates/dbx-core/src/query/mod.rs
+++ b/crates/dbx-core/src/query/mod.rs
@@ -7080,7 +7080,12 @@ mod tests {
(b'n', Vec::new())
}
b'E' => {
- commands.lock().unwrap().push(statement.clone());
+ // The driver resolves the connection identity once per
+ // physical connection at checkout; it is driver plumbing,
+ // not part of the session statement history under test.
+ if !statement.starts_with("SELECT pg_backend_pid") {
+ commands.lock().unwrap().push(statement.clone());
+ }
if fail_once == Some(statement.as_str()) {
fail_once = None;
(b'E', b"SERROR\0CXX000\0Mtest statement failed\0\0".to_vec())