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())