1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Small fix to embedded library

we should call check_user in NO_EMBEDDED_ACCESS_CHECKS case
to do necessary initializations
This commit is contained in:
hf@deer.(none)
2004-03-27 15:27:36 +04:00
parent 403001ff1c
commit 2fc0fa6670

View File

@ -491,6 +491,7 @@ int check_embedded_connection(MYSQL *mysql)
thd->host= (char*)my_localhost;
thd->host_or_ip= thd->host;
thd->user= my_strdup(mysql->user, MYF(0));
check_user(thd, COM_CONNECT, NULL, 0, thd->db, true);
return 0;
}