sqlany_error function

Returns the last error code and message stored in the connection object.

Syntax
sacapi_i32 sqlany_error( a_sqlany_connection * conn, char * buffer, size_t size )
Parameters
  • conn   A connection object returned from sqlany_new_connection.

  • buffer   A buffer to be filled with the error message.

  • size   The size of the supplied buffer.

Returns

The last error code. Positive values are warnings, negative values are errors, and 0 is success.

See also