cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

sqlany_execute() failed but sqlany_error() didnt return an error.

oneeyeman1
Participant
0 Likes
22

Hi, ALL,

For some reason the following code:

 

[code]

if( !m_api.sqlany_execute( m_stmt ) )
{
 char buffer[SACAPI_ERROR_SIZE + 20] {};
char sqlstate[6];
int rc;
rc = m_api.sqlany_error( m_conn, buffer, sizeof( buffer ) );
break;
}

 

does not fill the "buffer" variable with the error message.

 

Could someone please suggest what could be the issue and how to perform the successful query execution.

 

Thank you.

 

Accepted Solutions (0)

Answers (0)