[unixODBC-dev] SQLGetConnectAttr when called before connection

Nick Gorham nick at lurcher.org
Thu Jun 18 09:41:01 BST 2009


G, Hemanth Kumar wrote:
>
> Hi Nick,
>
> SQLGetConnectAttr with SQL_ATTR_PACKET_SIZE (which requires an open 
> connection), when called before connecting, must return 08003 
> (Connection does not exist.)
>
> Returns SQL_SUCCESS instead.
>
> SQLGetConnectAttr(hdbc, SQL_ATTR_PACKET_SIZE, &sdwValue, 0, NULL); 
> (when called before the connection is open)
> Expected : 08003 (Connection does not exist.))
> Received : SQL_SUCCESS
>
> Please verify.
>
> Thanks
> Hemanth.
>
Hi,

Just checked this with the MS driver manager, it returns SQL_SUCCESS. I 
would have thought that this was a attribute that should be set before 
connecting, as most drivers have to establish this in the first part of 
the connection process, and can't change after the connection is 
established.

-- 
Nick


More information about the unixODBC-dev mailing list