From 603e57aff883ca6ab41bb1b7eea0e48c8e9acd8d Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Thu, 3 Jul 2025 16:36:18 +0300 Subject: [PATCH] bindings/python: Fix ROLLBACK --- bindings/python/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/src/lib.rs b/bindings/python/src/lib.rs index 8a57b6726..f9c5c481f 100644 --- a/bindings/python/src/lib.rs +++ b/bindings/python/src/lib.rs @@ -264,7 +264,7 @@ impl Connection { pub fn rollback(&self) -> PyResult<()> { if !self.conn.get_auto_commit() { - self.conn.execute("COMMIT").map_err(|e| { + self.conn.execute("ROLLBACK").map_err(|e| { PyErr::new::(format!("Failed to commit: {:?}", e)) })?;