Uniform Metadata for DOUBLE Data Type Across ODBC APIs Now Ensured
Details
| Detail name | Value |
|---|---|
| Changelog number | 24666 |
| Type | Bug |
| Status | Resolved |
| Affected versions | Exasol 7.1.0 |
| Fix versions | ODBC 25.2.3 |
| Resolution Date | 2025-06-20 |
Description
The ODBC driver incorrectly assigned the column metadata data type name DOUBLE for result-set columns with the DOUBLE data type.
SQLColAttribute(SQL_COLUMN_TYPE_NAMEorSQL_DESC_TYPE_NAME) returnedDOUBLE, whereas metadata queried using other APIs likeSQLColumnsandSQLGetTypeInfocorrectly returnedDOUBLE PRECISION.- This inconsistency caused confusion for applications relying on accurate metadata and schema definitions across ODBC APIs.
Workaround
Use the SQLColumns , SQLGetTypeInfo, or SQLColAttribute(SQL_DESC_CONCISE_TYPE)
Fix
- The ODBC driver has been updated to ensure that
SQLColAttributereturns the correct data type name,DOUBLE PRECISION, for columns with theDOUBLEdata type. - Now,
SQLColAttributebehavior is consistent withSQLColumnsandSQLGetTypeInfo, providing reliable metadata across all APIs.
Changed behavior
Before the Fix:
SQLColAttribute returned DOUBLE for the DOUBLE data type in columns, leading to inconsistent metadata compared to SQLColumns and SQLGetTypeInfo.
Applications relying on SQLColAttribute might have misinterpreted the column data type as DOUBLE, while DOUBLE PRECISION is the correct name.
After the Fix:
SQLColAttribute now returns DOUBLE PRECISION for columns of the DOUBLE data type.
All APIs (SQLColAttribute, SQLColumns, SQLGetTypeInfo) consistently report DOUBLE PRECISION for DOUBLE columns, eliminating ambiguity.