Commit ce101166 authored by Sergey Vojtovich's avatar Sergey Vojtovich

MDEV-11175 - \H option does not replace localhost with a host name

Let \H issue host name when connected to localhost via TCP/IP.
parent 23cb94f0
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment