bug-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-glpk] GLPK fails with MySQL ODBC Connector 5.1


From: xypron
Subject: [Bug-glpk] GLPK fails with MySQL ODBC Connector 5.1
Date: Sun, 1 Feb 2009 13:32:47 -0800 (PST)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]