From 82d17ed77b3d2f085acb926f1373040359e7885d Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 20 May 2009 17:02:38 +0200 Subject: [FIX] bug 375361: ensure the db transaction is closed when closing the cursor lp bug: https://launchpad.net/bugs/375361 fixed bzr revid: christophe@tinyerp.com-20090520150238-w18k3aitqzpmw5nm --- bin/sql_db.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/sql_db.py') diff --git a/bin/sql_db.py b/bin/sql_db.py index 598e8be5e25..679ce2da7ac 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -159,6 +159,7 @@ class Cursor(object): @check def close(self): + self.rollback() # Ensure we close the current transaction. self.print_log() self._obj.close() -- cgit v1.2.3