1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-11 05:52:26 +03:00
This commit is contained in:
hf@deer.(none)
2003-09-29 21:07:51 +05:00
parent e9d7b859e4
commit 6d3d37c6f8
2 changed files with 4 additions and 2 deletions

View File

@@ -1586,8 +1586,8 @@ bool MYSQL_LOG::write(THD *thd,const char *query, uint query_length,
tmp_errno=errno;
}
if (my_b_printf(&log_file, "# User@Host: %s[%s] @ %s [%s]\n",
thd->priv_user,
thd->user,
thd->priv_user ? thd->priv_user : "",
thd->user ? thd->user : "",
thd->host ? thd->host : "",
thd->ip ? thd->ip : "") == (uint) -1)
tmp_errno=errno;