![background image](http://html1.mh-extra.com/html/oracle/5-0/5-0_reference-manual_16461962202.webp)
C API Function Descriptions
2182
The MySQL server has gone away.
•
CR_SERVER_LOST
[2942]
The connection to the server was lost during the query.
•
CR_UNKNOWN_ERROR
[2941]
An unknown error occurred.
20.6.6.57.
mysql_rollback()
my_bool mysql_rollback(MYSQL *mysql)
Description
Rolls back the current transaction.
As of MySQL 5.0.3, the action of this function is subject to the value of the
completion_type
[444]
system variable. In particular, if the value of
completion_type
[444]
is 2, the server performs a
release after terminating a transaction and closes the client connection. The client program should call
mysql_close()
to close the connection from the client side.
Return Values
Zero if successful. Nonzero if an error occurred.
Errors
None.
20.6.6.58.
mysql_row_seek()
MYSQL_ROW_OFFSET mysql_row_seek(MYSQL_RES *result, MYSQL_ROW_OFFSET offset)
Description
Sets the row cursor to an arbitrary row in a query result set. The
offset
value is a row offset, typically
a value returned from
mysql_row_tell()
or from
mysql_row_seek()
. This value is not a row
number; to seek to a row within a result set by number, use
mysql_data_seek()
instead.
This function requires that the result set structure contains the entire result of the query, so
mysql_row_seek()
may be used only in conjunction with
mysql_store_result()
, not with
mysql_use_result()
.
Return Values
The previous value of the row cursor. This value may be passed to a subsequent call to
mysql_row_seek()
.
Errors
None.
20.6.6.59.
mysql_row_tell()
MYSQL_ROW_OFFSET mysql_row_tell(MYSQL_RES *result)
Description
Returns the current position of the row cursor for the last
mysql_fetch_row()
. This value can be
used as an argument to
mysql_row_seek()
.
Содержание 5.0
Страница 1: ...MySQL 5 0 Reference Manual ...
Страница 18: ...xviii ...
Страница 60: ...40 ...
Страница 396: ...376 ...
Страница 578: ...558 ...
Страница 636: ...616 ...
Страница 844: ...824 ...
Страница 1234: ...1214 ...
Страница 1426: ...MySQL Proxy Scripting 1406 The following diagram shows an overview of the classes exposed by MySQL Proxy ...
Страница 1427: ...MySQL Proxy Scripting 1407 ...
Страница 1734: ...1714 ...
Страница 1752: ...1732 ...
Страница 1783: ...Configuring Connector ODBC 1763 ...
Страница 1793: ...Connector ODBC Examples 1773 ...
Страница 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Страница 1842: ...Connector Net Installation 1822 5 Once the installation has been completed click Finish to exit the installer ...
Страница 1864: ...Connector Net Visual Studio Integration 1844 Figure 20 24 Debug Stepping Figure 20 25 Function Stepping 1 of 2 ...
Страница 2850: ...2830 ...
Страница 2854: ...2834 ...
Страница 2928: ...2908 ...
Страница 3000: ...2980 ...
Страница 3122: ...3102 ...
Страница 3126: ...3106 ...
Страница 3174: ...3154 ...
Страница 3232: ...3212 ...