ODBC: SQLColAttribute returns wrong string length in case of truncation

Details

Detail name Value
Changelog Number 14309
Type Bug
Status Resolved
Affected Versions Exasol 7.0.0
Fix Versions Exasol 8.0.0, Exasol 7.1.10
Resolution Date 2022-04-20

Description

The ODBC function SQLColAttribute returns string values e.g. for column name. When the user-defined buffer is too small to fit the whole string, the function returned the length of the truncated string instead of the length of the available string.

Workaround

Increase the user-defined buffer.

Fix

According to the ODBC standard, the driver returns the total number of bytes (excluding the null-termination byte for character data) available.