summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorRamil Kalimullin <ramil@mysql.com>2009-03-25 21:50:42 +0400
committerRamil Kalimullin <ramil@mysql.com>2009-03-25 21:50:42 +0400
commit63821b173dc937bfdac4937ebf18141aa7fbd4bd (patch)
tree7545c393fe1275e9bf5da94f556cfd05b8f9c8d8 /sql/sql_class.cc
parentcf6c7262d014873e192b64151d71e03e814e8d29 (diff)
parentde8042d0070f96c016b992df10a55298fed327e2 (diff)
downloadmariadb-git-63821b173dc937bfdac4937ebf18141aa7fbd4bd.tar.gz
Auto-merge
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 07172dde549..4389fd5039e 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -2145,6 +2145,13 @@ void Security_context::skip_grants()
}
+bool Security_context::user_matches(Security_context *them)
+{
+ return ((user != NULL) && (them->user != NULL) &&
+ !strcmp(user, them->user));
+}
+
+
/****************************************************************************
Handling of open and locked tables states.