summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <kaa@polly.(none)>2007-11-19 15:27:44 +0300
committerunknown <kaa@polly.(none)>2007-11-19 15:27:44 +0300
commit1f7678fe52ae199b87602bea5f35dd3e8e4bc04e (patch)
tree9f9fe772a4568270ca693df7ce1df9a16446be70 /client
parent55499d2bf4958cc53e9a4447ddb2ea97cb954fa8 (diff)
downloadmariadb-git-1f7678fe52ae199b87602bea5f35dd3e8e4bc04e.tar.gz
Changed the help text for --comments to make it clear which option
disables the option explicitely. Changed the option location in code so that --help will show it in lexical option order. This is for bug #26215: mysql command line client should not strip comments from SQL statements client/mysql.cc: Changed the help text for --comments to make it clear which option disables the option explicitely. Changed the option location in code so that --help will show it in lexical option order.
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index a8d88bec274..6af33670ca5 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -595,6 +595,10 @@ static struct my_option my_long_options[] =
{"default-character-set", OPT_DEFAULT_CHARSET,
"Set the default character set.", (gptr*) &default_charset,
(gptr*) &default_charset, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
+ {"comments", 'c', "Preserve comments. Send comments to the server."
+ " The default is --skip-comments (discard comments), enable with --comments",
+ (gptr*) &preserve_comments, (gptr*) &preserve_comments,
+ 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"compress", 'C', "Use compression in server/client protocol.",
(gptr*) &opt_compress, (gptr*) &opt_compress, 0, GET_BOOL, NO_ARG, 0, 0, 0,
0, 0, 0},
@@ -755,10 +759,6 @@ static struct my_option my_long_options[] =
{"show-warnings", OPT_SHOW_WARNINGS, "Show warnings after every statement.",
(gptr*) &show_warnings, (gptr*) &show_warnings, 0, GET_BOOL, NO_ARG,
0, 0, 0, 0, 0, 0},
- {"comments", 'c', "Preserve comments. Send comments to the server."
- " Comments are discarded by default, enable with --enable-comments",
- (gptr*) &preserve_comments, (gptr*) &preserve_comments,
- 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{ 0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
};