[unixODBC-support] SQLConnect() with null DSN returning IM010 instead of IM002 (if SQL_NTS is specified)
G, Hemanth Kumar
Hemanth.G at Teradata.com
Sun May 24 12:46:49 BST 2009
Hi,
SQLConnect() with null DSN should return IM002 (DSN not found and no
default driver specified).
Instead unixODBC returns IM010(DSN too long).
rc = SQLConnect(hdbc, NULL, SQL_NTS, (SQLCHAR *)"uid", SQL_NTS, (SQLCHAR
*)"pwd", SQL_NTS);
Expected: STATE=IM002 (Data source name not found and no default driver
specified)
Received: IM010 (Data source name too long)
Otherwise, if the lenth is 0, it returns the expected state.
rc = SQLConnect(hdbc, NULL, 0, (SQLCHAR *)"uid", SQL_NTS, (SQLCHAR
*)"pwd", SQL_NTS);
Expected: STATE=IM002 (Data source name not found and no default driver
specified)
Received: STATE=IM002 (Data source name not found and no default driver
specified)
Please verify this once.
Regards
Hemanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20090524/d13c539c/attachment.html>
More information about the unixODBC-support
mailing list