changeset 3:df195ac92df6 MySQLdb

Merge changes from 1.2 branch
author adustman
date Sun, 09 Apr 2006 04:06:40 +0000
parents c0d1fc0429ce
children b5a377255eea
files CHANGES-1.2.1 HISTORY MANIFEST.in setup.py test_MySQLdb_capabilities.py
diffstat 5 files changed, 70 insertions(+), 52 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES-1.2.1	Fri Apr 07 05:06:01 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,50 +0,0 @@
-=====================
- What's new in 1.2.1
-=====================
-
-Switched to Subversion. Was going to do this for 1.3, but a
-SourceForge CVS outage has forced the issue.
-
-Mapped a lot of new 4.1 and 5.0 error codes to Python exceptions
-
-Added an API call for mysql_set_character_set(charset) (MySQL > 5.0.7)
-
-Added an API call for mysql_get_character_set_info() (MySQL > 5.0.10)
-
-Revamped the build system. Edit site.cfg if necessary (probably not
-in most cases)
-
-Python-2.3 is now the minimum version.
-
-Dropped support for mx.Datetime and stringtimes; always uses Python
-datetime module now.
-
-Improved unit tests
-
-New connect() options:
-* charset: sets character set, implies use_unicode
-* sql_mode: sets SQL mode (i.e. ANSI, etc.; see MySQL docs)
-
-When using MySQL-4.1 or newer, enables MULTI_STATEMENTS
-
-When using MySQL-5.0 or newer, enables MULTI_RESULTS
-
-When using MySQL-4.1 or newer, more detailed warning messages
-are produced
-
-SET columns returned as Python Set types; you can pass a Set as
-a parameter to cursor.execute().
-
-Support for the new MySQL-5.0 DECIMAL implementation
-
-Support for Python Decimal type
-
-Some use of weak references internally. Cursors no longer leak
-if you don't close them. Connections still do, unfortunately.
-
-ursor.fetchXXXDict() methods raise DeprecationWarning
-
-cursor.begin() is making a brief reappearence.
-
-cursor.callproc() now works, with some limitations.
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HISTORY	Sun Apr 09 04:06:40 2006 +0000
@@ -0,0 +1,65 @@
+========================
+ What's new in 1.2.1_p2
+========================
+
+There are some minor build fixes which probably only affect MySQL
+older than 4.0.
+
+If you had MySQL older than 4.1, the new charset and sql_mode
+parameters didn't work right. In fact, it was impossible to create
+a connection due to the charset problem.
+
+If you are using MySQL-4.1 or newer, there is no practical difference
+between 1.2.1 and 1.2.1_p2, and you don't need to upgrade.
+
+
+=====================
+ What's new in 1.2.1
+=====================
+
+Switched to Subversion. Was going to do this for 1.3, but a
+SourceForge CVS outage has forced the issue.
+
+Mapped a lot of new 4.1 and 5.0 error codes to Python exceptions
+
+Added an API call for mysql_set_character_set(charset) (MySQL > 5.0.7)
+
+Added an API call for mysql_get_character_set_info() (MySQL > 5.0.10)
+
+Revamped the build system. Edit site.cfg if necessary (probably not
+in most cases)
+
+Python-2.3 is now the minimum version.
+
+Dropped support for mx.Datetime and stringtimes; always uses Python
+datetime module now.
+
+Improved unit tests
+
+New connect() options:
+* charset: sets character set, implies use_unicode
+* sql_mode: sets SQL mode (i.e. ANSI, etc.; see MySQL docs)
+
+When using MySQL-4.1 or newer, enables MULTI_STATEMENTS
+
+When using MySQL-5.0 or newer, enables MULTI_RESULTS
+
+When using MySQL-4.1 or newer, more detailed warning messages
+are produced
+
+SET columns returned as Python Set types; you can pass a Set as
+a parameter to cursor.execute().
+
+Support for the new MySQL-5.0 DECIMAL implementation
+
+Support for Python Decimal type
+
+Some use of weak references internally. Cursors no longer leak
+if you don't close them. Connections still do, unfortunately.
+
+ursor.fetchXXXDict() methods raise DeprecationWarning
+
+cursor.begin() is making a brief reappearence.
+
+cursor.callproc() now works, with some limitations.
+
--- a/MANIFEST.in	Fri Apr 07 05:06:01 2006 +0000
+++ b/MANIFEST.in	Sun Apr 09 04:06:40 2006 +0000
@@ -3,7 +3,7 @@
 include MANIFEST.in
 include MANIFEST
 include ChangeLog
-include CHANGES-1.2.1
+include HISTORY
 include GPL
 include pymemcompat.h
 include dbapi20.py
--- a/setup.py	Fri Apr 07 05:06:01 2006 +0000
+++ b/setup.py	Sun Apr 09 04:06:40 2006 +0000
@@ -53,6 +53,9 @@
 elif enabled('threadsafe'):
     libs = mysql_config("libs_r")
     client = "mysqlclient_r"
+    if not libs:
+        libs = mysql_config("libs")
+        client = "mysqlclient"
 else:
     libs = mysql_config("libs")
     client = "mysqlclient"
--- a/test_MySQLdb_capabilities.py	Fri Apr 07 05:06:01 2006 +0000
+++ b/test_MySQLdb_capabilities.py	Sun Apr 09 04:06:40 2006 +0000
@@ -13,7 +13,7 @@
     connect_kwargs = dict(db='test', read_default_file='~/.my.cnf',
                           charset='utf8', sql_mode="ANSI,STRICT_TRANS_TABLES,TRADITIONAL")
     create_table_extra = "ENGINE=INNODB CHARACTER SET UTF8"
-    leak_test = True
+    leak_test = False
     
     def quote_identifier(self, ident):
         return "`%s`" % ident