Blame SOURCES/myodbc-shutdown.patch

94c54c
myodbc_end is really only usable during Windows DLL unload, since it's not
94c54c
connection-specific and not thread-safe either.  This bit of brain fade
94c54c
accounts for our bug #185343 and several bugs filed at mysql.com.
94c54c
94c54c
Furthermore, my_end() isn't exported from libmysqlclient anymore.
94c54c
Hence, best fix is to turn the function into a no-op.
94c54c
94c54c
94c54c
diff -Naur mysql-connector-odbc-5.1.9.orig/driver/dll.c mysql-connector-odbc-5.1.9/driver/dll.c
94c54c
--- mysql-connector-odbc-5.1.9.orig/driver/dll.c	2011-10-04 16:19:00.000000000 -0400
94c54c
+++ mysql-connector-odbc-5.1.9/driver/dll.c	2012-01-10 15:56:41.988087855 -0500
94c54c
@@ -94,6 +94,7 @@
94c54c
 */
94c54c
 void myodbc_end()
94c54c
 {
94c54c
+#if 0
94c54c
   if (!--myodbc_inited)
94c54c
   {
94c54c
     x_free(decimal_point);
94c54c
@@ -121,6 +122,7 @@
94c54c
     my_end(0);
94c54c
 #endif
94c54c
   }
94c54c
+#endif
94c54c
 }
94c54c
 
94c54c