Subject: | DBD-mysql does not compile against mysql-4.1.3 |
mysql_shutdown has changed in 4.1.3 and now accepts a second argument. Calls with only one argument do not work. The attached patch appears to fix the problem.
diff --unified --recursive DBD-mysql-2.9003.old/mysql.xs DBD-mysql-2.9003/mysql.xs
--- DBD-mysql-2.9003.old/mysql.xs 2004-07-07 19:52:48.273672272 +0100
+++ DBD-mysql-2.9003/mysql.xs 2004-07-07 19:54:32.450834936 +0100
@@ -97,7 +97,11 @@
}
if (strEQ(command, "shutdown")) {
+#if MYSQL_VERSION_ID >= 40103
+ result = mysql_shutdown(sock,SHUTDOWN_DEFAULT);
+#else
result = mysql_shutdown(sock);
+#endif
} else if (strEQ(command, "reload")) {
result = mysql_reload(sock);
} else if (strEQ(command, "createdb")) {