freebsd-ports/databases/py-MySQLdb/files/patch-_mysql.c
Edwin Groothuis 882df49ad9 INTAINER] Update port: databases/py-MySQLdb to 1.0.1
Update port: databases/py-MySQLdb to 1.0.1

	- Change to 1.0.1
	- Rediff patch-_mysql.c
	- Install more docs

PR:		ports/75866
Submitted by:	Marcus Grando <marcus@corp.grupos.com.br>
2005-01-12 22:13:43 +00:00

14 lines
438 B
C

--- _mysql.c.orig Sat Jan 1 15:40:13 2005
+++ _mysql.c Wed Jan 5 18:35:18 2005
@@ -1542,7 +1542,11 @@
if (!PyArg_ParseTuple(args, "")) return NULL;
check_connection(self);
Py_BEGIN_ALLOW_THREADS
+#if MYSQL_VERSION_ID >= 40103
+ 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);