Bug #91257 Wrong help order in mysql CLI
| Submitted: | 14 Jun 2018 12:18 | ||
|---|---|---|---|
| Reporter: | Mikiya Okuno | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
| Version: | 8.0.11,5.5.60, 5.6.40, 5.7.22 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 1.894 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: When "mysql --help" is executed, default options are printed after options. The order is completely wrong. How to repeat: Run "mysql --help". Suggested fix: diff --git a/client/mysql.cc b/client/mysql.cc index 55fed58861a..d9f384cfcc3 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1936,8 +1936,8 @@ static void usage(int version) break; } } + print_defaults(MYSQL_CONFIG_NAME, load_default_groups); my_print_help(my_long_options); - print_defaults("my", load_default_groups); my_print_variables(my_long_options); }