adapter.connect = None after adapter.close_connection
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.6.0-development+timestamp.2013.08.21.02.52.57
|
Version 2.6.0-development+timestamp.2013.08.21.04.28.27
|
||||||
|
|||||||
+8
-3
@@ -1778,13 +1778,18 @@ class BaseAdapter(ConnectionPool):
|
|||||||
return list(tables)
|
return list(tables)
|
||||||
|
|
||||||
def commit(self):
|
def commit(self):
|
||||||
if self.connection: return self.connection.commit()
|
if self.connection:
|
||||||
|
return self.connection.commit()
|
||||||
|
|
||||||
def rollback(self):
|
def rollback(self):
|
||||||
if self.connection: return self.connection.rollback()
|
if self.connection:
|
||||||
|
return self.connection.rollback()
|
||||||
|
|
||||||
def close_connection(self):
|
def close_connection(self):
|
||||||
if self.connection: return self.connection.close()
|
if self.connection:
|
||||||
|
r = self.connection.close()
|
||||||
|
self.connection = None
|
||||||
|
return r
|
||||||
|
|
||||||
def distributed_transaction_begin(self, key):
|
def distributed_transaction_begin(self, key):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user