Commit 09dc52e9 authored by Dr.李's avatar Dr.李

don't dispose

parent 62544f3d
...@@ -113,7 +113,6 @@ class SqlEngine(object): ...@@ -113,7 +113,6 @@ class SqlEngine(object):
def __del__(self): def __del__(self):
if self.session: if self.session:
self.engine.dispose()
self.session.close() self.session.close()
def __enter__(self): def __enter__(self):
...@@ -121,7 +120,6 @@ class SqlEngine(object): ...@@ -121,7 +120,6 @@ class SqlEngine(object):
def __exit__(self, exc_type, exc_val, exc_tb): def __exit__(self, exc_type, exc_val, exc_tb):
if self.session: if self.session:
self.engine.dispose()
self.session.close() self.session.close()
def create_session(self): def create_session(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment