summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorunknown <wax@kishkin.ru>2004-08-19 18:42:17 +0600
committerunknown <wax@kishkin.ru>2004-08-19 18:42:17 +0600
commit3381fae281ba7caaa9aaf04effe0ca2ab985ef4f (patch)
tree4af03c6e7ef7cbb98bf2f209aca809e073a0f832 /sql-common
parente65e823c4839f83c441a7e631a2d53dc5788106f (diff)
downloadmariadb-git-3381fae281ba7caaa9aaf04effe0ca2ab985ef4f.tar.gz
Change information text in pipe and shared memory
libmysql/errmsg.c: Changed texts of shared memory and pipe sql-common/client.c: remove information about host from pipe and change assigment of host_info in shared_memory
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql-common/client.c b/sql-common/client.c
index 738904657cc..289944d35a0 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -1613,7 +1613,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
sock=0;
unix_socket = 0;
host=mysql->options.shared_memory_base_name;
- host_info=(char*) ER(CR_SHARED_MEMORY_CONNECTION);
+ sprintf(host_info=buff, ER(CR_SHARED_MEMORY_CONNECTION), host);
}
}
#endif /* HAVE_SMEM */
@@ -1677,8 +1677,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
else
{
net->vio=vio_new_win32pipe(hPipe);
- sprintf(host_info=buff, ER(CR_NAMEDPIPE_CONNECTION), host,
- unix_socket);
+ sprintf(host_info=buff, ER(CR_NAMEDPIPE_CONNECTION), unix_socket);
}
}
#endif