Re: SQLGetStmtAttr returns SQL_SUCCESS for 24000 (Invalid cursor state)

Nick Gorham <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <[email protected]>
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
_______________________________________________
unixODBC-dev mailing list
[email protected]
http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.