Bug #2207 client "hangs" after calling mysql_set_server_option
Submitted: 25 Dec 2003 6:38 Modified: 12 Jan 2004 7:32
Reporter: Georg Richter
Status: Closed
Category:Server Severity:S2 (Serious)
Version:4.1.2 OS:Linux (Linux)
Assigned to: Sinisa Milivojevic Target Version:

[25 Dec 2003 6:38] Georg Richter
Description:
When calling mysql_set_server_option client application hangs. This only occurs with
libmysqlclient, in embedded server it works fine.

How to repeat:
<cut>
mysql = mysql_init(NULL);
	
if (!mysql_real_connect(mysql, "localhost", "root", "", "test", 0, NULL, 0)) {
	/* Errorhandling */
	...
}

mysql_set_server_option(mysql, MYSQL_OPTION_MULTI_STATEMENTS_ON);  <- hangs
[27 Dec 2003 9:41] Sinisa Milivojevic
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Fix will come in 4.1.2
[12 Jan 2004 7:32] Sinisa Milivojevic
Committed.