summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2004-03-27 15:27:36 +0400
committerunknown <hf@deer.(none)>2004-03-27 15:27:36 +0400
commit8b0d52ab1224a4a23f53c46c890c8aac9906af57 (patch)
tree5eb1118140c5b84513528cbc6c59e83de6ed64e2 /libmysqld
parentd8c5358115abb7134943a8ec9b1f2ec0fabcae26 (diff)
downloadmariadb-git-8b0d52ab1224a4a23f53c46c890c8aac9906af57.tar.gz
Small fix to embedded library
we should call check_user in NO_EMBEDDED_ACCESS_CHECKS case to do necessary initializations libmysqld/lib_sql.cc: call of check_user added
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 83bd9d5f52b..aa29f630b0d 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -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;
}