server/migractions.py
changeset 1080 7437abc17e02
parent 972 1efba3fd1364
child 1240 6a9f621e07cc
--- 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'):