Bug #18012 mysqlslap fails if querystring starts with delimiter
Submitted: 7 Mar 2006 9:33 Modified: 18 Apr 2006 7:55
Reporter: Axel Schwenke Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:5.1.8-beta OS:Linux (Linux)
Assigned to: Magnus Blåudd CPU Architecture:Any

[7 Mar 2006 9:33] Axel Schwenke
Description:
If the querystring given to --query starts with the delimiter, mysqlslap eats 100% cpu and never returns. No statements are issued to the server.

How to repeat:
mysqlslap --delimiter=";" --create="create table t1 (c1 int)" --query=";select * from t1"
[11 Apr 2006 20:23] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/4819
[18 Apr 2006 7:55] Magnus Blåudd
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