[client-connect] drop rqlst on rset returned client side
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 21 Jun 2013 15:26:03 +0200
changeset 9058 2f45e99ad753
parent 9057 99cd4761aee6
child 9059 795ea498225f
[client-connect] drop rqlst on rset returned client side The DBAPI used to drop the RQL syntax tree on rset to save bandwidth. We could stop doing it for In-memory client connection. However keeping the syntax tree leads to multiple tests failures. So we keep dropping it as the DBAPI always did. related to #2503918
repoapi.py
--- a/repoapi.py	Fri Jun 21 15:25:47 2013 +0200
+++ b/repoapi.py	Fri Jun 21 15:26:03 2013 +0200
@@ -173,6 +173,10 @@
         with self._srv_cnx as cnx:
             rset = cnx.execute(*args, **kwargs)
         rset.req = self
+        # XXX keep the same behavior as the old dbapi
+        # otherwise multiple tests break.
+        # The little internet kitten is very sad about this situation.
+        rset._rqlst = None
         return rset
 
     commit = _srv_cnx_func('commit')