Incorrect input value length for function SQLSetConnectAttr
Brought to you by:
lurcher,
peteralexharvey
Problem Description:
Incorrect input value length is provided by UnixODBC to function SQLSetConnectAttr (of driver) when ANSI application uses an Unicode driver.
This bug was observed when tested on Oracle Enterprise Linux and Ubuntu 12.04 (both 64bit versions) with Mysql Connector ODBC 5.2 with UnixODBC 2.3.1 version.
How to repeat:
Run attached test program (testSQLConnectorAttr.c) on Ubuntu 12.04 (64 bit) version with Mysql odbc connector 5.2 compiled for unicode version.
test program for SQLSetConnectAttr failure
Fix for this in SVN now and 2.3.2-pre tarball on the ftp site. Give it a try and let me know if it fixes the problem.