[unixODBC-dev] Incorrect states with SQLConnect

Nick Gorham nick at lurcher.org
Mon Jul 6 10:45:30 BST 2009


G, Hemanth Kumar wrote:
>
> Nick,
>
> SQLConnect Using DSN with length of zero, is expected to return IM002, 
> but returns success.
> SQLConnect(hdbc, dsn, 0, uid, SQL_NTS, pwd, SQL_NTS);
> Expected: IM002
> Received : 000000
>

Can you check there isnt a [DEFAULT] section in the ini file?
>
> SQLConnect with null DSN and with length above zero, is expected to 
> return IM002, returns IM010 instead.
> SQLConnect(hdbc, NULL, 10, uid, SQL_NTS, pwd, SQL_NTS);
> Expected: IM002
> Received: IM010
>
Should be done now.

-- 
Nick


More information about the unixODBC-dev mailing list