Commit 2fc0fa66 authored by hf@deer.(none)'s avatar hf@deer.(none)

Small fix to embedded library

we should call check_user in NO_EMBEDDED_ACCESS_CHECKS case
to do necessary initializations
parent 403001ff
......@@ -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;
}
......
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