Blob Blame History Raw
myodbc_end really should only be invoked during Windows DLL unload, since it's
not connection-specific and not thread-safe either.  This bit of brain fade
accounts for our bug #185343 and several bugs filed at mysql.com.


diff -Naur mysql-connector-odbc-3.51.12.orig/driver/handle.c mysql-connector-odbc-3.51.12/driver/handle.c
--- mysql-connector-odbc-3.51.12.orig/driver/handle.c	2005-10-09 15:33:40.000000000 -0400
+++ mysql-connector-odbc-3.51.12/driver/handle.c	2006-03-24 14:28:33.000000000 -0500
@@ -107,7 +107,6 @@
   GlobalFree(GlobalHandle((HGLOBAL) henv));
 #else
   if (henv) my_free((char*) henv,MYF(0));
-  myodbc_end();
 #endif /* _UNIX_ */
   return (SQL_SUCCESS);
 }