Oracle 5.0 Reference Manual page 2172

Table of Contents

Advertisement

Description
For the connection specified by mysql,
the error message for the most recently invoked API function that failed. If a function didn't fail, the
return value of
A rule of thumb is that all functions that have to ask the server for information reset
they succeed.
For functions that reset mysql_error(), the following two tests are equivalent:
if(*mysql_error(&mysql))
{
// an error occurred
}
if(mysql_error(&mysql)[0])
{
// an error occurred
}
The language of the client error messages may be changed by recompiling the MySQL client library.
Currently, you can choose error messages in several different languages. See
the Error Message
Return Values
A null-terminated character string that describes the error. An empty string if no error occurred.
Errors
None.
20.6.6.16.
mysql_escape_string()
Use
mysql_real_escape_string()
This function is identical to
mysql_real_escape_string()
string according to the current character set.
argument and does not respect the current character set.
20.6.6.17.
mysql_fetch_field()
MYSQL_FIELD *mysql_fetch_field(MYSQL_RES *result)
Description
Returns the definition of one column of a result set as a
repeatedly to retrieve information about all columns in the result set.
when no more fields are left.
NULL
mysql_fetch_field()
a new
SELECT
mysql_field_seek().
If you've called
mysql_store_result(), MySQL returns the default blob length (8KB) if you call
mysql_fetch_field()
MySQL doesn't know the maximum length for the BLOB. This should be made configurable sometime.)
Once you've retrieved the result set,
this column in the specific query.
C API Function Descriptions
may be the previous error or an empty string to indicate no error.
mysql_error()
Language".
mysql_real_escape_string()
takes a connection handler as its first argument and escapes the
is reset to return information about the first field each time you execute
query. The field returned by
to perform a
mysql_query()
to ask for the length of a
field->max_length
returns a null-terminated string containing
mysql_error()
instead!
mysql_escape_string()
MYSQL_FIELD
mysql_fetch_field()
on a table but have not called
SELECT
field. (The 8KB size is chosen because
BLOB
contains the length of the largest value for
2152
mysql_error()
Section 10.2, "Setting
except that
does not take a connection
structure. Call this function
mysql_fetch_field()
is also affected by calls to
if
returns

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents