[unixODBC-dev] when to return SQL_NO_DATA from SQLExecute/SQLExecDirect

Peter Harvey pharvey at codebydesign.com
Tue Oct 30 09:48:46 GMT 2012


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?


More information about the unixODBC-dev mailing list