Commit bc72ae43 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

patch: support isolation_level__ argument in Shared.DC.ZRDB.DA.__call__().

parent 6029cd4c
......@@ -134,7 +134,7 @@ def DA_PUT(self, REQUEST, RESPONSE):
return RESPONSE
def DA__call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, **kw):
def DA__call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, isolation_level__=None, **kw):
"""Call the database method
The arguments to the method should be passed via keyword
......@@ -222,7 +222,7 @@ def DA__call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, **kw):
result=self._cached_result(DB__, query, self.max_rows_, c)
else:
try:
result=DB__.query(query, self.max_rows_)
result=DB__.query(query, self.max_rows_, isolation_level=isolation_level__)
except:
LOG("DA call raise", ERROR, "DB = %s, c = %s, query = %s" %(DB__, c, query), error=True)
raise
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment