diff options
author | Jim Winstead <jimw@mysql.com> | 2009-07-14 10:08:38 -0700 |
---|---|---|
committer | Jim Winstead <jimw@mysql.com> | 2009-07-14 10:08:38 -0700 |
commit | bd0a44fba279633bbbe19c904103ea06644061bb (patch) | |
tree | 621df211e8838b5cbacf88d7e41019a2401d4f4f /client/mysqlslap.c | |
parent | 5b178e9a2af23226828f9c71fa6b1b82db319a9e (diff) | |
parent | f8e24020847fe98660c15b03258d3a4f6453d819 (diff) | |
download | mariadb-git-bd0a44fba279633bbbe19c904103ea06644061bb.tar.gz |
Merge in bug fixes for client tools
Diffstat (limited to 'client/mysqlslap.c')
-rw-r--r-- | client/mysqlslap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/mysqlslap.c b/client/mysqlslap.c index 316fb6a9da3..70abfbb7136 100644 --- a/client/mysqlslap.c +++ b/client/mysqlslap.c @@ -565,8 +565,7 @@ static struct my_option my_long_options[] = REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, {"csv", OPT_SLAP_CSV, "Generate CSV output to named file or to stdout if no file is named.", - (uchar**) &opt_csv_str, (uchar**) &opt_csv_str, 0, GET_STR, - OPT_ARG, 0, 0, 0, 0, 0, 0}, + NULL, NULL, 0, GET_STR, OPT_ARG, 0, 0, 0, 0, 0, 0}, #ifdef DBUG_OFF {"debug", '#', "This is a non-debug version. Catch this and exit.", 0, 0, 0, GET_DISABLED, OPT_ARG, 0, 0, 0, 0, 0, 0}, @@ -740,6 +739,11 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), DBUG_PUSH(argument ? argument : default_dbug_option); debug_check_flag= 1; break; + case OPT_SLAP_CSV: + if (!argument) + argument= (char *)"-"; /* use stdout */ + opt_csv_str= argument; + break; #include <sslopt-case.h> case 'V': print_version(); |