diff options
author | Ramil Kalimullin <ramil@mysql.com> | 2009-03-25 21:50:42 +0400 |
---|---|---|
committer | Ramil Kalimullin <ramil@mysql.com> | 2009-03-25 21:50:42 +0400 |
commit | 63821b173dc937bfdac4937ebf18141aa7fbd4bd (patch) | |
tree | 7545c393fe1275e9bf5da94f556cfd05b8f9c8d8 /sql/sql_class.cc | |
parent | cf6c7262d014873e192b64151d71e03e814e8d29 (diff) | |
parent | de8042d0070f96c016b992df10a55298fed327e2 (diff) | |
download | mariadb-git-63821b173dc937bfdac4937ebf18141aa7fbd4bd.tar.gz |
Auto-merge
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 7 |
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. |