Bug #1221 Segfault when executing multiple queries without storing resultset (emb. mysql)
Submitted: 8 Sep 2003 3:41 Modified: 8 Sep 2003 6:28
Reporter: Georg Richter Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Embedded Library ( libmysqld ) Severity:S3 (Non-critical)
Version:4.1.1 OS:Linux (Linux)
Assigned to: Alexey Botchkov CPU Architecture:Any

[8 Sep 2003 3:41] Georg Richter
Description:
The 4 bugs which I set to bogus before, is only 1 bug:

When you execute multiple select/show statements without storing the resultset, an segfault occurs.

When using libmysqlclient the segfault doesn't occur, mysql_error reports "Commands out of sync;  You can't run this command now". This also works correct in 4.0.15

How to repeat:
/* embedded server connect */
...

mysql_query("SELECT 1");
mysql_query("SELECT 2");
[8 Sep 2003 6:28] Alexey Botchkov
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

changeset 1.1610