#3336 closed defect (fixed)
ODBC Code type mismatch on 64-bit builds
Reported by: | gaige | Owned by: | warmerdam |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | odbc |
Cc: |
Description
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.
Thanks, -Gaige
Attachments (1)
Change History (3)
by , 13 years ago
Attachment: | cpl_odbc.cpp-diff added |
---|
comment:1 by , 13 years ago
Keywords: | odbc added |
---|---|
Milestone: | → 1.6.4 |
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Diff of my cpl_odbc.cpp against trunk