Retrieves the last error code and message stored in the connection object.
Syntax
public
sacapi_i32
sqlany_error
(
a_sqlany_connection * sqlany_conn, char * buffer, size_t size)
Parameters
-
sqlany_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 indicates success.
Usage
For more information on SQLCODE error messages, see SQL Anywhere error messages sorted by SQLCODE.