mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
Bump version. Minor Alpha Linux update. Clear errorhandler on close.
This commit is contained in:
@@ -19,8 +19,8 @@ version_info = (
|
||||
0,
|
||||
9,
|
||||
2,
|
||||
"alpha",
|
||||
2)
|
||||
"beta",
|
||||
1)
|
||||
if version_info[3] == "final": __version__ = "%d.%d.%d" % version_info[:3]
|
||||
else: __version__ = "%d.%d.%d%1.1s%d" % version_info[:5]
|
||||
|
||||
|
||||
@@ -73,6 +73,7 @@ class Connection:
|
||||
|
||||
def __del__(self):
|
||||
if hasattr(self, '_db'): self.close()
|
||||
print "Alas! I die!"
|
||||
|
||||
def close(self):
|
||||
"""Close the connection. No further activity possible."""
|
||||
|
||||
@@ -46,8 +46,8 @@ class BaseCursor:
|
||||
|
||||
def close(self):
|
||||
"""Close the cursor. No further queries will be possible."""
|
||||
if not self.connection: return
|
||||
self.connection = None
|
||||
self.errorhandler = None
|
||||
|
||||
def _check_executed(self):
|
||||
if not self._executed:
|
||||
|
||||
Reference in New Issue
Block a user