Bug #32685 Need replacement for SQLGetPrivateProfileStringW with unixODBC
Submitted: 23 Nov 2007 21:01 Modified: 3 Dec 2007 7:24
Reporter: Jim Winstead Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / ODBC Severity:S1 (Critical)
Version:5.1 OS:Any
Assigned to: Jim Winstead CPU Architecture:Any
Tags: SQLGetPrivateProfileStringW, unixODBC

[23 Nov 2007 21:01] Jim Winstead
Description:
unixODBC 2.2.11 (the current version shipped with Debian and Ubuntu) does not implement SQLGetPrivateProfileStringW() and the rest of the Unicode functions in odbcinst.

The only function that the driver actually needs is SQLGetPrivateProfileStringW().

How to repeat:
Compile against unixODBC 2.2.11.

Suggested fix:
Implement a wrapper for SQLGetPrivateProfileStringW() (which will also need to work around other SQLGetPrivateProfileString() bugs in unixODBC 2.2.11) and stubs for other functions to allow things to compile.
[23 Nov 2007 21:01] Jim Winstead
Implement workarounds for unixODBC limitations

Attachment: odbcinstw.diff (text/plain), 5.87 KiB.

[29 Nov 2007 18:51] Jim Winstead
This is now committed, and will be in 5.1.1.
[3 Dec 2007 7:24] MC Brown
A note has been added to the 5.1.1 changelog: 

A wrapper for the SQLGetPrivateProfileStringW() function, which is required for Unicode support, has been created. This function is missing from the unixODBC driver manager.