Blame SOURCES/myodbc-shutdown.patch

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