diff options
| author | Christophe Simonis <christophe@tinyerp.com> | 2009-05-20 17:02:38 +0200 |
|---|---|---|
| committer | Christophe Simonis <christophe@tinyerp.com> | 2009-05-20 17:02:38 +0200 |
| commit | 82d17ed77b3d2f085acb926f1373040359e7885d (patch) | |
| tree | 7388d252232af3cc3b1af1360e7f85e99df539ca /bin/sql_db.py | |
| parent | 0acbf9038fdfc865c6aae9ece26350e0f216b40f (diff) | |
[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
Diffstat (limited to 'bin/sql_db.py')
| -rw-r--r-- | bin/sql_db.py | 1 |
1 files changed, 1 insertions, 0 deletions
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() |
