adapter.connect = None after adapter.close_connection
This commit is contained in:
1 parent
4f1d6e6f31
commit
d1525cf6ec
2 files changed
+9
-4
No files matched your search
+8
-3
@@ -1778,13 +1778,18 @@ class BaseAdapter(ConnectionPool):
|
||||
return list(tables)
|
||||
|
||||
def commit(self):
|
||||
if self.connection: return self.connection.commit()
|
||||
if self.connection:
|
||||
return self.connection.commit()
|
||||
|
||||
def rollback(self):
|
||||
if self.connection: return self.connection.rollback()
|
||||
if self.connection:
|
||||
return self.connection.rollback()
|
||||
|
||||
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):
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user