ODBC Code type mismatch on 64-bit builds
|Reported by:||gaige||Owned by:||warmerdam|
CPLODBCStatement::CollectResultsInfo() allocates space for column information. Unfortunately, it does so with some assumptions about the data types that are in error when compiling for 64-bit machines and 64-bit ODBC. These are easily remedied by using the SQL types.
In particular m_panColValueLengths allocates sizeof(integer) instead of sizeof(SQLLEN).
Approximately line 431-439 in trunk and 1.6, and again at 1236-1250. Diffs attached.