bindings/python: Fix ROLLBACK

This commit is contained in:
Pekka Enberg
2025-07-03 16:36:18 +03:00
parent 9e92325bad
commit 603e57aff8

View File

@@ -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::<OperationalError, _>(format!("Failed to commit: {:?}", e))
})?;