Oracle 5.0 Reference Manual page 2197

Table of Contents

Advertisement

Flag Name
CLIENT_REMEMBER_OPTIONS
If your program uses
flag must be enabled. This is because each
to any result sets that might be returned by statements executed within the procedure. Because
can return multiple results, process them using a loop that calls
whether there are more results.
CLIENT_MULTI_RESULTS
either explicitly by passing the
CLIENT_MULTI_STATEMENTS
If you enable
the result for every call to
mysql_next_result()
Section 20.6.15, "C API Support for Multiple Statement
For some parameters, it is possible to have the value taken from an option file rather than from
an explicit value in the
the
MYSQL_READ_DEFAULT_FILE
mysql_real_connect(). Then, in the
for each parameter to be read from an option file:
• For host, specify a value of
• For user, specify a value of
• For passwd, specify a value of NULL. (For the password, a value of the empty string in the
mysql_real_connect()
indicates explicitly that the MySQL account must have an empty password.)
• For db, specify a value of
• For port, specify a value of 0.
• For unix_socket, specify a value of NULL.
If no value is found in an option file for a parameter, its default value is used as indicated in the
descriptions given earlier in this section.
Return Values
A
connection handle if the connection was successful,
MYSQL*
unsuccessful. For a successful connection, the return value is the same as the value of the first
parameter.
Errors
CR_CONN_HOST_ERROR
Failed to connect to the MySQL server.
CR_CONNECTION_ERROR
Failed to connect to the local MySQL server.
C API Function Descriptions
statements to execute stored procedures, the
CALL
can be enabled when you call mysql_real_connect(),
CLIENT_MULTI_RESULTS
(which also enables CLIENT_MULTI_RESULTS).
CLIENT_MULTI_STATEMENTS
mysql_query()
to determine whether there are more results. For an example, see
mysql_real_connect()
or
NULL
NULL
call cannot be overridden in an option file, because the empty string
or the empty string.
NULL
[2942]
[2942]
Flag Description
Remember options specified by calls to mysql_options().
Without this option, if
repeat the
mysql_options()
again. With this option, the
be repeated.
returns a result to indicate the call status, in addition
CALL
flag itself, or implicitly by passing
or CLIENT_MULTI_RESULTS, you should process
or
mysql_real_query()
Execution".
call. To do this, call
MYSQL_READ_DEFAULT_GROUP
mysql_real_connect()
or the empty string ("").
or the empty string.
2177
mysql_real_connect()
calls before trying to connect
mysql_options()
CLIENT_MULTI_RESULTS
mysql_next_result()
by using a loop that calls
mysql_options()
option before calling
call, specify the "no-value" value
if the connection was
NULL
fails, you must
calls need not
CALL
to determine
with

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents