int mysql_set_server_option(MYSQL *mysql, enum
Enables or disables an option for the connection.
option can have one of the following values.
|Enable multiple-statement support|
|Disable multiple-statement support|
If you enable multiple-statement support, you should retrieve
results from calls to
mysql_real_query() by using a
loop that calls
mysql_next_result() to determine
whether there are more results. For an example, see
Section 17.6.15, “C API Support for Multiple Statement Execution”.
Enabling multiple-statement support with
MYSQL_OPTION_MULTI_STATEMENTS_ON does not
have quite the same effect as enabling it by passing the
CLIENT_MULTI_STATEMENTS flag to
CLIENT_MULTI_STATEMENTS also enables
This function was added in MySQL 4.1.1.
Zero for success. Nonzero if an error occurred.
Commands were executed in an improper order.
The MySQL server has gone away.
The connection to the server was lost during the query.
The server didn't support
(which is the case that the server is older than 4.1.1) or
the server didn't support the option one tried to set.