summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorAnushree Prakash B <anushree.prakash.b@oracle.com>2018-07-03 15:20:03 +0530
committerAnushree Prakash B <anushree.prakash.b@oracle.com>2018-07-03 15:20:03 +0530
commit28b052190e377bdfe176e1dc71d268b94c832263 (patch)
tree0c0307a143b0b4c9c637cc911188b243ade5b76f /client
parent22e99fcb34712e710c6fe086d44e3643479f9e76 (diff)
downloadmariadb-git-28b052190e377bdfe176e1dc71d268b94c832263.tar.gz
Bug#28093271 - MYSQL OVERLOADS -b SHORT OPTION:
--BINARY-AS-HEX, --NO-BEEP DESCRIPTION: ============ mysql uses -b as the short-option form for two different long options i.e. no-beep and binary-as-hex. This can result in unintended results if the short form -b is used instead of the specific long option name. FIX: ==== -b will now be used for one long option only i.e --no-beep. The option binary-as-hex will not have any short option and should be provided as a complete name.
Diffstat (limited to 'client')
-rw-r--r--client/mysql.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index 9c54f564192..bc32a58f37e 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1392,7 +1392,7 @@ static struct my_option my_long_options[] =
{"batch", 'B',
"Don't use history file. Disable interactive behavior. (Enables --silent.)",
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
- {"binary-as-hex", 'b', "Print binary data as hex", &opt_binhex, &opt_binhex,
+ {"binary-as-hex", 0, "Print binary data as hex", &opt_binhex, &opt_binhex,
0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"character-sets-dir", OPT_CHARSETS_DIR,
"Directory for character set files.", &charsets_dir,