Skip to content

Commit

Permalink
MDEV-11175 - \H option does not replace localhost with a host name
Browse files Browse the repository at this point in the history
Let \H issue host name when connected to localhost via TCP/IP.
  • Loading branch information
svoj committed Nov 2, 2016
1 parent 23cb94f commit ce10116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/mysql.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5129,7 +5129,7 @@ static const char *construct_prompt()
{
const char *prompt;
prompt= connected ? mysql_get_host_info(&mysql) : "not_connected";
if (strstr(prompt, "Localhost"))
if (strstr(prompt, "Localhost") || strstr(prompt, "localhost "))
{
if (*c == 'h')
processed_prompt.append("localhost");
Expand Down

0 comments on commit ce10116

Please sign in to comment.