[unixODBC-dev] SQLGetStmtAttr returns SQL_SUCCESS for 24000 (Invalid cursor state)
Nick Gorham
nick.gorham at easysoft.com
Fri Jun 19 11:02:52 BST 2009
G, Hemanth Kumar wrote:
>
> Hi Nick,
>
> SQLGetStmtAttr when called with argument attr
> SQL_ATTR_ROW_NUMBER and the cursor was not open, should return 24000
> (Invalid cursor state).
>
> But is returning SQL_SUCCESS instead.
>
> SQLGetStmtAttr(hstmt, SQL_ATTR_ROW_NUMBER, &val, 0, &strlen);
> //called soon after SQLExecute
> Expected : 24000 (Invalid cursor state)
> Received : SQL_SUCCESS
>
> Please verify this one.
>
Looking at "a" spec
http://msdn.microsoft.com/en-us/library/ms715438.aspx
That error isn't returned from the driver manager, but the driver
--
Nick
More information about the unixODBC-dev
mailing list