Oracle 5.0 Reference Manual page 2224

Table of Contents

Advertisement

If the current statement has pending or unread results, this function cancels them so that the next
query can be executed.
Return Values
Zero if the statement was freed successfully. Nonzero if an error occurred.
Errors
CR_SERVER_GONE_ERROR
The MySQL server has gone away.
CR_UNKNOWN_ERROR
An unknown error occurred.
Example
See the Example in
20.6.10.7.
mysql_stmt_data_seek()
void mysql_stmt_data_seek(MYSQL_STMT *stmt, my_ulonglong offset)
Description
Seeks to an arbitrary row in a statement result set. The
in the range from
This function requires that the statement result set structure contains the entire result of the
last executed query, so
mysql_stmt_store_result().
Return Values
None.
Errors
None.
20.6.10.8.
mysql_stmt_errno()
unsigned int mysql_stmt_errno(MYSQL_STMT *stmt)
Description
For the statement specified by stmt,
recently invoked statement API function that can succeed or fail. A return value of zero means that no
error occurred. Client error message numbers are listed in the MySQL
error message numbers are listed in mysqld_error.h. Errors also are listed at
Error Codes, and Common
Return Values
An error code value. Zero if no error occurred.
Errors
None.
20.6.10.9.
mysql_stmt_error()
const char *mysql_stmt_error(MYSQL_STMT *stmt)
C API Prepared Statement Function Descriptions
[2942]
[2941]
Section 20.6.10.10,
to mysql_stmt_num_rows(stmt)-1.
0
mysql_stmt_data_seek()
mysql_stmt_errno()
Problems.
"mysql_stmt_execute()".
offset
may be used only in conjunction with
returns the error code for the most
2204
value is a row number and should be
header file. Server
errmsg.h
Appendix C, Errors,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents