mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-15 11:10:58 +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:
|
||||
|
@ -1,4 +1,4 @@
|
||||
#define version_info "(0,9,2,'alpha',2)"
|
||||
#define version_info "(0,9,2,'beta',1)"
|
||||
#define __version__ "0.9.2"
|
||||
/*
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
@ -63,6 +63,8 @@ elif sys.platform == "cygwin":
|
||||
extra_compile_args = ['-DMS_WIN32']
|
||||
elif sys.platform[:6] == "darwin": # Mac OS X
|
||||
extra_link_args = ['-flat_namespace']
|
||||
elif sys.platform == 'linux2' and os.environ.get('HOSTTYPE') == 'alpha':
|
||||
libraries.extend(['ots', 'cpml'])
|
||||
elif os.name == "posix": # UNIX-ish platforms not covered above
|
||||
pass # default should work
|
||||
else:
|
||||
@ -90,7 +92,7 @@ MySQLdb. MySQLdb is free software.
|
||||
|
||||
setup (# Distribution meta-data
|
||||
name = "MySQL-python",
|
||||
version = "0.9.2a2",
|
||||
version = "0.9.2b1",
|
||||
description = "An interface to MySQL",
|
||||
long_description=long_description,
|
||||
author = "Andy Dustman",
|
||||
|
Reference in New Issue
Block a user