summaryrefslogtreecommitdiff
path: root/sql/sql_parse.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-10-18 11:46:30 -0700
committerSergei Golubchik <sergii@pisem.net>2013-10-18 11:46:30 -0700
commit02a72919548ddaca7b194c076175f106d44c6fca (patch)
tree3e0cf71baf483337317a8749d19e34ac5016fdc5 /sql/sql_parse.h
parentac6877d420a70e215c59f1c85cfe80c6a71cf349 (diff)
downloadmariadb-git-02a72919548ddaca7b194c076175f106d44c6fca.tar.gz
cleanup
sql/sp.cc: don't split "user@host" string in db_load_routine, because the caller needs to generate it from user and host. instead pass user and host directly into db_load_routine sql/sql_parse.cc: 1. REVOKE ALL doesn't need invoker. 2. make sp_process_definer() reusable sql/sql_trigger.cc: don't duplicate the code from sp_process_definer(), reuse it sql/sql_view.cc: don't duplicate the code from sp_process_definer(), reuse it
Diffstat (limited to 'sql/sql_parse.h')
-rw-r--r--sql/sql_parse.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_parse.h b/sql/sql_parse.h
index 25c41cc624c..c87e290119e 100644
--- a/sql/sql_parse.h
+++ b/sql/sql_parse.h
@@ -67,6 +67,7 @@ void get_default_definer(THD *thd, LEX_USER *definer);
LEX_USER *create_default_definer(THD *thd);
LEX_USER *create_definer(THD *thd, LEX_STRING *user_name, LEX_STRING *host_name);
LEX_USER *get_current_user(THD *thd, LEX_USER *user);
+bool sp_process_definer(THD *thd);
bool check_string_byte_length(LEX_STRING *str, const char *err_msg,
uint max_byte_length);
bool check_string_char_length(LEX_STRING *str, const char *err_msg,