From 56ec883fb795dda18571a2e9b1353b735e1ddf88 Mon Sep 17 00:00:00 2001 From: t8y2 Date: Sun, 11 Oct 2026 13:53:16 +0800 Subject: [PATCH] fix(core): skip connection identity probe in snapshot test history --- crates/dbx-core/src/query/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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())