Hello Andrew,

when using GLPK with MySQL ODBC Connector 5.1 on 64bit Windows an error
occurs.

Please, apply the patch below to file src/glpsql.c

Best regards

Xypron


--- glpk/glpk/trunk/glpk-4.35/src/glpsql.c      2009/01/09 19:52:06     385
+++ glpk/glpk/trunk/glpk-4.35/src/glpsql.c      2009/02/01 20:57:57     390
@@ -609,7 +609,7 @@
    }
    /* set AUTOCOMMIT on*/
    ret = dl_SQLSetConnectAttr(sql->hdbc, SQL_ATTR_AUTOCOMMIT,
-      (SQLPOINTER)SQL_AUTOCOMMIT_ON, SQL_NTS);
+      (SQLPOINTER)SQL_AUTOCOMMIT_ON, 0);
    /* allocate a statement handle */
    ret = dl_SQLAllocHandle(SQL_HANDLE_STMT, sql->hdbc, &(sql->hstmt));
-- 
View this message in context: 
http://www.nabble.com/GLPK-fails-with-MySQL-ODBC-Connector-5.1-tp21780650p21780650.html
Sent from the Gnu - GLPK - Bugs mailing list archive at Nabble.com.



_______________________________________________
Bug-glpk mailing list
Bug-glpk@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-glpk

Reply via email to