Re: when to return SQL_NO_DATA from SQLExecute/SQLExecDirect

jon pounder <[email protected]>
Newsgroups gmane.comp.db.unixodbc.devel
Message-ID <[email protected]>
On 10/30/2012 05:48 AM, Peter Harvey wrote:

I have run into that before and I think its pretty common actually.
No data does not necessarily mean error at all.

> Christian,
>
> drvexecute returns SQL_NO_DATA, as follows, when I submit a simple
> "CREATE TABLE" statement.
>
>      if (*s->ov3 && !s->isselect && ret == SQL_SUCCESS && nrows == 0) {
>      ret = SQL_NO_DATA;
>
> My take on the specification is that this is not a time to return
> SQL_NO_DATA. This should be SQL_SUCCESS. I may be wrong?
>
> --
> Cheers
> Peter
>
>
> _______________________________________________
> unixODBC-dev mailing list
> [email protected]
> http://mailman.unixodbc.org/mailman/listinfo/unixodbc-dev

_______________________________________________
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.