Commit 88b15bc1 authored by unknown's avatar unknown

Fixed a bug in mysqldump.c

client/mysqldump.c:
  Fixed a bug in get_one_option(), --set-variable didn't work right.
parent ff302950
Branches unavailable
Tags unavailable
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
** and adapted to mysqldump 05/11/01 by Jani Tolonen ** and adapted to mysqldump 05/11/01 by Jani Tolonen
*/ */
#define DUMP_VERSION "9.01" #define DUMP_VERSION "9.02"
#include <my_global.h> #include <my_global.h>
#include <my_sys.h> #include <my_sys.h>
...@@ -198,8 +198,7 @@ static struct my_option my_long_options[] = ...@@ -198,8 +198,7 @@ static struct my_option my_long_options[] =
0, 0}, 0, 0},
{"result-file", 'r', {"result-file", 'r',
"Direct output to a given file. This option should be used in MSDOS, because it prevents new line '\\n' from being converted to '\\n\\r' (newline + carriage return).", "Direct output to a given file. This option should be used in MSDOS, because it prevents new line '\\n' from being converted to '\\n\\r' (newline + carriage return).",
(gptr*) &md_result_file, (gptr*) &md_result_file, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
0, 0, 0, 0, 0, 0},
{"socket", 'S', "Socket file to use for connection.", {"socket", 'S', "Socket file to use for connection.",
(gptr*) &opt_mysql_unix_port, (gptr*) &opt_mysql_unix_port, 0, GET_STR, (gptr*) &opt_mysql_unix_port, (gptr*) &opt_mysql_unix_port, 0, GET_STR,
REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
...@@ -363,9 +362,6 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -363,9 +362,6 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
opt_xml = 1; opt_xml = 1;
opt_disable_keys=0; opt_disable_keys=0;
break; break;
default:
fprintf(stderr,"%s: Illegal option character '%c'\n",my_progname,opterr);
/* Fall throught */
case 'I': case 'I':
case '?': case '?':
usage(); usage();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment