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)) })?;