Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere C API 参考 » sacapi.h

 

sqlany_error 函数

返回存储在连接对象中的上一错误代码和消息。

语法
sacapi_i32 sqlany_error( a_sqlany_connection * conn, char * buffer, size_t size )
参数
  • conn   从 sqlany_new_connection 返回的连接对象。

  • buffer   将在其中填充错误消息的缓冲区。

  • size   提供的缓冲区大小。

返回值

上一错误代码。正值表示警告,负值表示错误,0 表示成功执行。

另请参见