Oracle 5.0 Reference Manual page 2170

Table of Contents

Advertisement

Description
Instructs the server to write some debug information to the log. For this to work, the connected user
must have the
Return Values
Zero if the command was successful. Nonzero if an error occurred.
Errors
CR_COMMANDS_OUT_OF_SYNC
Commands were executed in an improper order.
CR_SERVER_GONE_ERROR
The MySQL server has gone away.
CR_SERVER_LOST
The connection to the server was lost during the query.
CR_UNKNOWN_ERROR
An unknown error occurred.
20.6.6.13.
mysql_eof()
my_bool mysql_eof(MYSQL_RES *result)
Description
This function is deprecated.
mysql_eof()
If you acquire a result set from a successful call to mysql_store_result(), the client receives the
entire set in one operation. In this case, a
end of the result set has been reached and it is unnecessary to call mysql_eof(). When used with
mysql_store_result(),
On the other hand, if you use
the set are obtained from the server one by one as you call
Because an error may occur on the connection during this process, a
mysql_fetch_row()
this case, you can use
value if the end of the result set was reached and zero if an error occurred.
Historically,
and mysql_error(). Because those error functions provide the same information, their use is
preferred over mysql_eof(), which is deprecated. (In fact, they provide more information, because
mysql_eof()
when one occurs.)
Return Values
Zero if no error occurred. Nonzero if the end of the result set has been reached.
Errors
None.
C API Function Descriptions
[578]
privilege.
SUPER
[2942]
[2942]
[2942]
[2941]
mysql_errno()
determines whether the last row of a result set has been read.
mysql_eof()
mysql_use_result()
does not necessarily mean the end of the result set was reached normally. In
mysql_eof()
predates the standard MySQL error functions
mysql_eof()
returns only a boolean value whereas the error functions indicate a reason for the error
or
mysql_error()
return from
NULL
mysql_fetch_row()
always returns true.
to initiate a result set retrieval, the rows of
mysql_fetch_row()
to determine what happened.
2150
may be used instead.
always means the
repeatedly.
return value from
NULL
returns a nonzero
mysql_eof()
mysql_errno()

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents