diff options
author | Clement Laforet <clement@FreeBSD.org> | 2004-07-31 20:13:16 +0000 |
---|---|---|
committer | Clement Laforet <clement@FreeBSD.org> | 2004-07-31 20:13:16 +0000 |
commit | 1928b42c5faaab304ea19846bbf7d42ee5b4be4e (patch) | |
tree | 6bb7fd84c25593dbe8e87d3b61fe861d4a1df9c7 /databases/py-MySQLdb | |
parent | 0c6a5caf4ec5c97aff1d2307108e3156444eb7de (diff) | |
download | ports-1928b42c5faaab304ea19846bbf7d42ee5b4be4e.tar.gz ports-1928b42c5faaab304ea19846bbf7d42ee5b4be4e.zip |
Notes
Diffstat (limited to 'databases/py-MySQLdb')
-rw-r--r-- | databases/py-MySQLdb/files/patch-_mysql.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/databases/py-MySQLdb/files/patch-_mysql.c b/databases/py-MySQLdb/files/patch-_mysql.c new file mode 100644 index 000000000000..c595576ce69d --- /dev/null +++ b/databases/py-MySQLdb/files/patch-_mysql.c @@ -0,0 +1,21 @@ +Index: MySQLdb/_mysql.c +=================================================================== +RCS file: /cvsroot/mysql-python/MySQLdb/_mysql.c,v +retrieving revision 1.49 +diff -u -r1.49 _mysql.c +--- _mysql.c 7 Jun 2004 03:44:38 -0000 1.49 ++++ _mysql.c 26 Jul 2004 16:58:29 -0000 +@@ -1542,7 +1542,13 @@ + if (!PyArg_ParseTuple(args, "")) return NULL; + check_connection(self); + Py_BEGIN_ALLOW_THREADS ++ ++#if MYSQL_VERSION_ID >= 040103 ++ r = mysql_shutdown(&(self->connection), ++ SHUTDOWN_DEFAULT); ++#else + r = mysql_shutdown(&(self->connection)); ++#endif + Py_END_ALLOW_THREADS + if (r) return _mysql_Exception(self); + Py_INCREF(Py_None); |