SQLDrivers() doesn't report length for DriverAttributes when called with NULL

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SQLDrivers() doesn't report length for DriverAttributes when called with NULL

Frank Some
Hello,

I'm calling this function with NULL pointers for the arguments
DriverDescription and DriverAttributes in order to fetch the character
lengths of the to be returned strings in advanced.

It returns the correct length for the DriverDescription but for the
DriverAttributes it returns 0 although a string is returned for it if I
give it a buffer (and then it reports the length correctly).

I'm running unixODBC 2.3.2-pre

-Frank
_______________________________________________
unixODBC-support mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support
Reply | Threaded
Open this post in threaded view
|

Re: SQLDrivers() doesn't report length for DriverAttributes when called with NULL

Nick Gorham-2
On 15/08/13 18:14, Frank Some wrote:

> Hello,
>
> I'm calling this function with NULL pointers for the arguments
> DriverDescription and DriverAttributes in order to fetch the character
> lengths of the to be returned strings in advanced.
>
> It returns the correct length for the DriverDescription but for the
> DriverAttributes it returns 0 although a string is returned for it if I
> give it a buffer (and then it reports the length correctly).
>
> I'm running unixODBC 2.3.2-pre
>
> -Frank
> _______________________________________________
> unixODBC-support mailing list
> [hidden email]
> http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support
Fix checked in, try now (new 2.3.2pre.tar built)

--
Nick
_______________________________________________
unixODBC-support mailing list
[hidden email]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support