Issue 1481:error using do_connect=False parameter in DAL creation with mongodb and couchdb is fixed, thanks Alan
This commit is contained in:
1 parent
714fcc5202
commit
6590de030c
2 files changed
+5
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.4.6-stable+timestamp.2013.05.10.08.25.20
|
Version 2.4.6-stable+timestamp.2013.05.10.08.28.07
|
||||||
@@ -590,6 +590,10 @@ class ConnectionPool(object):
|
|||||||
if f is None:
|
if f is None:
|
||||||
f = self.connector
|
f = self.connector
|
||||||
|
|
||||||
|
if not hasattr(self, "driver") or self.driver is None:
|
||||||
|
LOGGER.debug("Skipping connection since there's no driver")
|
||||||
|
return
|
||||||
|
|
||||||
if not self.pool_size:
|
if not self.pool_size:
|
||||||
self.connection = f()
|
self.connection = f()
|
||||||
self.cursor = cursor and self.connection.cursor()
|
self.cursor = cursor and self.connection.cursor()
|
||||||
|
|||||||
Reference in new issue
Block a user