summaryrefslogtreecommitdiff
path: root/libmysqld/libmysqld.c
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-12-10 11:04:58 +0400
committerunknown <hf@deer.(none)>2003-12-10 11:04:58 +0400
commitfd28d1be71d3b1fc76f09e9bcc942061cb0c52a4 (patch)
tree9e59a92bacd2c558c3a0267c41846e834e534c08 /libmysqld/libmysqld.c
parent80ec807976ca5ae291883b1096e4af7233788af0 (diff)
downloadmariadb-git-fd28d1be71d3b1fc76f09e9bcc942061cb0c52a4.tar.gz
Fix for #2046
Just didn't notice that the mysql_connect function was implemeted in libmysqld.c. Implementation removed. libmysqld/libmysqld.c: supefluous code deleted
Diffstat (limited to 'libmysqld/libmysqld.c')
-rw-r--r--libmysqld/libmysqld.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/libmysqld/libmysqld.c b/libmysqld/libmysqld.c
index 59c18368279..b893b8c30fe 100644
--- a/libmysqld/libmysqld.c
+++ b/libmysqld/libmysqld.c
@@ -81,28 +81,6 @@ static void end_server(MYSQL *mysql)
DBUG_VOID_RETURN;
}
-/**************************************************************************
-** Connect to sql server
-** If host == 0 then use localhost
-**************************************************************************/
-
-MYSQL * STDCALL
-mysql_connect(MYSQL *mysql,const char *host,
- const char *user, const char *passwd)
-{
- MYSQL *res;
- mysql=mysql_init(mysql); /* Make it thread safe */
- {
- DBUG_ENTER("mysql_connect");
- if (!(res=mysql_real_connect(mysql,host,user,passwd,NullS,0,NullS,0)))
- {
- if (mysql->free_me)
- my_free((gptr) mysql,MYF(0));
- }
- DBUG_RETURN(res);
- }
-}
-
static inline int mysql_init_charset(MYSQL *mysql)
{
char charset_name_buff[16], *charset_name;