[dbapi] some compat with distant < 3.8 repo
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 20 Apr 2010 18:34:37 +0200
changeset 5364 e0feefb87de5
parent 5363 d336476dcf57
child 5372 b74eed7e8b37
[dbapi] some compat with distant < 3.8 repo
dbapi.py
--- a/dbapi.py	Tue Apr 20 18:34:07 2010 +0200
+++ b/dbapi.py	Tue Apr 20 18:34:37 2010 +0200
@@ -423,7 +423,8 @@
         if eid_key is not None:
             warn('[3.8] eid_key is deprecated, you can safely remove this argument',
                  DeprecationWarning, stacklevel=2)
-        rset = self._repo.execute(self._sessid, rql, args, build_descr)
+        # XXX use named argument for build_descr in case repo is < 3.8
+        rset = self._repo.execute(self._sessid, rql, args, build_descr=build_descr)
         rset.req = self.req
         return rset