Mercurial > p > roundup > code
diff roundup/backends/back_mysql.py @ 5319:62de601bdf6f
Fix commits although a Reject exception is raised
Fix the problem that changes are committed to the database (due to
commits to otk handling) even when a Reject exception occurs. The fix
implements separate database connections for otk/session handling and
normal database operation.
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Fri, 20 Apr 2018 18:46:28 +0200 |
| parents | 198b6e810c67 |
| children | 35ea9b1efc14 |
line wrap: on
line diff
--- a/roundup/backends/back_mysql.py Thu Apr 19 20:01:43 2018 +0200 +++ b/roundup/backends/back_mysql.py Fri Apr 20 18:46:28 2018 +0200 @@ -563,7 +563,7 @@ vals = (spec.classname, 1) self.sql(sql, vals) - def sql_commit(self, fail_ok=False): + def sql_commit(self): ''' Actually commit to the database. ''' self.log_info('commit')
