ODBC: Standardize usage of some unicode functions

Details

Detail name Value
Changelog Number 13405
Type Improvement
Status Resolved
Fix Versions Exasol 7.1.3
Resolution Date 2021-11-26

Background

ODBC standard defines the buffer length of some functions that can take unicode strings as arguments. 

Improvement

In order to fulfill the ODBC standard, the following functions are adjusted:

 

Function Parameter Old Behavior New Behavior
SQLDescibeColW NameLengthPtr = in bytes = in characters
SQLErrorW TextLengthPtr = the number of characters returned = the number of characters available
SQLError TextLengthPtr = the number of characters returned = the number of characters available 
SQLGetDiagRecW  TextLengthPtr = the number of characters returned = the number of characters available
SQLGetDiagRec TextLengthPtr = the number of characters returned = the number of characters available 
SQLGetConnectAttrW BufferLength = in characters = in bytes