The DATA_TYPE column from the SQLGetTypeInfo result set in the ODBC driver is 0 instead of the appropriate SQL identifier. Note this works on Windows, but not on Linux. If I run this in a debugger I ...
Included in the usual tsunami of fixes Microsoft issued this week as part of Patch Tuesday was one that took care of a connectivity problem for applications using the Open Database Connectivity (ODBC) ...
SQLBindCol(ODBC_stmt, 1, SQL_C_CHAR, &tmp, 50, &ODBC_err); if((ODBC_res = SQLFetch(ODBC_stmt) != SQL_NO_DATA)) { strcpy(value, tmp); } else { res = -1 ...