--- a/server/sources/native.py Fri Apr 04 10:46:53 2014 +0200
+++ b/server/sources/native.py Mon Apr 07 12:28:25 2014 +0200
@@ -1005,9 +1005,10 @@
restr.update(tearestr)
# we want results ordered by transaction's time descendant
sql += ' ORDER BY tx_time DESC'
- cu = self.doexec(session, sql, restr)
- # turn results into transaction objects
- return [tx.Transaction(*args) for args in cu.fetchall()]
+ with session.ensure_cnx_set:
+ cu = self.doexec(session, sql, restr)
+ # turn results into transaction objects
+ return [tx.Transaction(*args) for args in cu.fetchall()]
def tx_info(self, session, txuuid):
"""See :class:`cubicweb.repoapi.ClientConnection.transaction_info`"""