[FIX] sql_db: forgotten attribute renaming _pool -> __pool
authorRaphael Collet <rco@openerp.com>
Thu, 10 Apr 2014 11:39:50 +0000 (13:39 +0200)
committerRaphael Collet <rco@openerp.com>
Thu, 10 Apr 2014 11:39:50 +0000 (13:39 +0200)
bzr revid: rco@openerp.com-20140410113950-71gcyz0t2rfuww57

openerp/sql_db.py

index 329017a..fcc60e7 100644 (file)
@@ -547,7 +547,7 @@ class Connection(object):
     def test_cursor(self, serialized=True):
         cursor_type = serialized and 'serialized ' or ''
         _logger.debug('create test %scursor to %r', cursor_type, self.dbname)
-        return TestCursor(self._pool, self.dbname, serialized=serialized)
+        return TestCursor(self.__pool, self.dbname, serialized=serialized)
 
     # serialized_cursor is deprecated - cursors are serialized by default
     serialized_cursor = cursor