should not give session as cnx.cursor(), else we may try to execute some query while no pool is set on the session
authorsylvain.thenault@logilab.fr
Wed, 11 Mar 2009 19:56:46 +0100
changeset 1080 7437abc17e02
parent 1079 452cb76fe07a
child 1105 4370edac331e
should not give session as cnx.cursor(), else we may try to execute some query while no pool is set on the session
server/migractions.py
--- a/server/migractions.py	Wed Mar 11 16:28:49 2009 +0100
+++ b/server/migractions.py	Wed Mar 11 19:56:46 2009 +0100
@@ -194,7 +194,10 @@
     @cached
     def rqlcursor(self):
         """lazy rql cursor"""
-        return self.cnx.cursor(self.session)    
+        # should not give session as cnx.cursor(), else we may try to execute
+        # some query while no pool is set on the session (eg on entity attribute
+        # access for instance)
+        return self.cnx.cursor()
     
     def commit(self):
         if hasattr(self, '_cnx'):