hdbc / hdbc-odbc

ODBC driver for HDBC
BSD 3-Clause "New" or "Revised" License
26 stars 34 forks source link

Extend buffer-size against driver encoding conversion case. #15

Closed khibino closed 10 years ago

khibino commented 10 years ago

Buffer size is too short when converted byte stream in byte array is longer than string like column length got by 'SQLDescribeCol' ODBC API.

For example, IBM DB2 driver which supports encoding conversion. When DB internal encoding is EUC, and HDBC required UTF8 byte stream, longer client buffer length may be required than DB server column length.