Retrieves the current SQLSTATE.
public size_t sqlany_sqlstate( a_sqlany_connection * sqlany_conn, char * buffer, size_t size )
sqlany_conn A connection object returned from sqlany_new_connection().
buffer A buffer to be filled with the current 5-character SQLSTATE.
size The buffer size.
The number of bytes copied into the buffer.
For more information on SQLSTATE error messages, see SQL Anywhere error messages sorted by SQLSTATE .