[unixODBC-dev] Problem getting error on SQL_NO_DATA

Eric Sharkey sharkey at netrics.com
Fri Apr 8 15:14:29 BST 2005


> That should be a simple thing to do, to try, just edit 
> DriverManager/__info.c and on or about line 4870 change
> 
[]
>      if ( ret_code == SQL_ERROR ||
>              ret_code == SQL_SUCCESS_WITH_INFO )
>      {
[]
>      if ( ret_code == SQL_ERROR ||
>              ret_code == SQL_SUCCESS_WITH_INFO ||
> 	    ret_code == SQL_NO_DATA )
>      {

I'm confused.  Why are you checking the return code at all?  I thought
the only return code which would assure no diagnostic records was
SQL_INVALID_HANDLE.  Although uncommon, a driver can return diagnostics
even with SQL_SUCCESS, right?

Eric



More information about the unixODBC-dev mailing list