Bug #1184 mysqlimport option structure error
Submitted: 2 Sep 2003 19:07 Modified: 8 Sep 2003 1:57
Reporter: Paul DuBois Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:MySQL 4 and up OS:Any (all)
Assigned to: Victor Vagin CPU Architecture:Any

[2 Sep 2003 19:07] Paul DuBois
Description:
The --ignore-lines option for mysqlimport
takes a numeric argument, but the option
structure treats it as a string:

  {"ignore-lines", OPT_IGN_LINES, "Ignore first n lines of data infile.",
   (gptr*) &opt_ignore_lines, (gptr*) &opt_ignore_lines, 0, GET_STR,

The associated code handles opt_ignore_lines as a string, but
this really isn't right, because the client library code that
generates the help message then produces this output:

  --ignore-lines=name Ignore first n lines of data infile.

It shouldn't say "=name", but that's how the library
generates help output for string options.  This is
misleading.

How to repeat:
mysqlimport --help | grep ignore-lines
[8 Sep 2003 1:57] Victor Vagin
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

fixed in mysql-4.0 and will be fixed in upper version when merge will be done