Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
检索存储在连接对象中的上一错误代码和消息。
public sacapi_i32 sqlany_error( a_sqlany_connection * sqlany_conn, char * buffer, size_t size )
sqlany_conn 从 sqlany_new_connection() 返回的连接对象。
buffer 将在其中填充错误消息的缓冲区。
size 提供的缓冲区大小。
上一错误代码。正值表示警告,负值表示错误,0 表示成功执行。
有关 SQLCODE 错误消息的详细信息,请参见按 SQLCODE 排序的 SQL Anywhere 错误消息。