Bug #29709 MySQL Connector/ODBC install error
Submitted: 11 Jul 2007 4:56 Modified: 11 Jul 2007 5:28
Reporter: S. Shiroki Email Updates:
Status: Closed Impact on me:
Category:Connector / ODBC Severity:S3 (Non-critical)
Version:3.51 OS:Any
Assigned to: CPU Architecture:Any

[11 Jul 2007 4:56] S. Shiroki
Running "Without installer version" of install.bat does not register ODBC driver.

Problem is that, myodbc3i isn't working.

How to repeat:

myodbc3i -a -d -t"MySQL ODBC 3.51 Driver;DRIVER=myodbc3.dll;SETUP=myodbc3S.dll"

at command doesn't register ODBC driver.

Suggested fix:
at line 582 of .\install\myodbc3i.c

it's doing
    pszDriverInfo[nChar]    = '\0';
    pszDriverInfo[nChar++]  = '\0';

suggested fix is
    pszDriverInfo[nChar]    = '\0';
    pszDriverInfo[++nChar]  = '\0';
[11 Jul 2007 5:28] Jim Winstead
Yes, this is obviously incorrect. The fix has been committed to the repository, and will be in 3.51.17.

As a workaround, you can make sure your driver information includes a final ';' character.