Bug #38949 Output string length from SQLDriverConnect includes NULL-term
Submitted: 21 Aug 2008 22:44 Modified: 10 Oct 2008 15:58
Reporter: Jess Balint
Status: Closed
Category:Connector/ODBC Severity:S3 (Non-critical)
Version:5.1 OS:Any
Assigned to: Jess Balint Target Version:
Triage: D4 (Minor)

[21 Aug 2008 22:44] Jess Balint
Description:
The pointer passed to SQLDriverConnect() to retrieve the output connection string length
is one greater than it should be due to inclusion of the NULL terminator.

How to repeat:
Call SQLDriverConnect() and check the output length reported from the driver vs. the
actual length of the string.
[11 Sep 2008 5:09] Jess Balint
COLUMN_SIZE was still the wrong value for Access, even when FLAG_NO_BIGINT was set
[11 Sep 2008 5:09] Jess Balint
Branch pushed to launchpad:
https://code.launchpad.net/~myodbc-developers/myodbc/bug38949
[3 Oct 2008 16:39] Jess Balint
Merged to trunk. Will be released in 5.1.6.
[10 Oct 2008 15:58] Tony Bedford
Added an entry to the 5.1.6 changelog:

The pointer passed to the SQLDriverConnect method to retrieve the output connection string
length was one greater than it should have been due to the inclusion of the NULL
terminator.