diff --git a/sql/sp.cc b/sql/sp.cc index 9c130eac52d..da1b9e9212f 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -41,7 +41,7 @@ static int db_load_routine(THD *thd, stored_procedure_type type, const sp_name *name, sp_head **sphp, sql_mode_t sql_mode, const char *params, const char *returns, - const char *body, st_sp_chistics &chistics, + const char *body, const st_sp_chistics &chistics, LEX_CSTRING *definer_user_name, LEX_CSTRING *definer_host_name, longlong created, longlong modified, @@ -813,7 +813,7 @@ static int db_load_routine(THD *thd, stored_procedure_type type, const sp_name *name, sp_head **sphp, sql_mode_t sql_mode, const char *params, const char *returns, - const char *body, st_sp_chistics &chistics, + const char *body, const st_sp_chistics &chistics, LEX_CSTRING *definer_user_name, LEX_CSTRING *definer_host_name, longlong created, longlong modified, @@ -1392,7 +1392,7 @@ sp_drop_routine(THD *thd, stored_procedure_type type, const sp_name *name) int sp_update_routine(THD *thd, stored_procedure_type type, const sp_name *name, - st_sp_chistics *chistics) + const st_sp_chistics *chistics) { TABLE *table; int ret; @@ -2201,7 +2201,7 @@ show_create_sp(THD *thd, String *buf, const char *params, ulong paramslen, const char *returns, ulong returnslen, const char *body, ulong bodylen, - st_sp_chistics *chistics, + const st_sp_chistics *chistics, const LEX_CSTRING *definer_user, const LEX_CSTRING *definer_host, sql_mode_t sql_mode) diff --git a/sql/sp.h b/sql/sp.h index 748610c1a9c..d33c767369e 100644 --- a/sql/sp.h +++ b/sql/sp.h @@ -145,7 +145,7 @@ sp_create_routine(THD *thd, stored_procedure_type type, sp_head *sp); int sp_update_routine(THD *thd, stored_procedure_type type, const sp_name *name, - st_sp_chistics *chistics); + const st_sp_chistics *chistics); int sp_drop_routine(THD *thd, stored_procedure_type type, const sp_name *name); @@ -240,7 +240,7 @@ bool show_create_sp(THD *thd, String *buf, const char *params, ulong paramslen, const char *returns, ulong returnslen, const char *body, ulong bodylen, - st_sp_chistics *chistics, + const st_sp_chistics *chistics, const LEX_CSTRING *definer_user, const LEX_CSTRING *definer_host, sql_mode_t sql_mode); diff --git a/sql/sp_head.cc b/sql/sp_head.cc index c87a15ff927..aa69de3f024 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -2455,7 +2455,7 @@ sp_head::sp_add_instr_cpush_for_cursors(THD *thd, sp_pcontext *pcontext) void sp_head::set_info(longlong created, longlong modified, - st_sp_chistics *chistics, sql_mode_t sql_mode) + const st_sp_chistics *chistics, sql_mode_t sql_mode) { m_created= created; m_modified= modified; diff --git a/sql/sp_head.h b/sql/sp_head.h index a96ef514429..f9d14378b7b 100644 --- a/sql/sp_head.h +++ b/sql/sp_head.h @@ -673,7 +673,7 @@ public: } void set_info(longlong created, longlong modified, - st_sp_chistics *chistics, sql_mode_t sql_mode); + const st_sp_chistics *chistics, sql_mode_t sql_mode); void set_definer(const char *definer, uint definerlen); void set_definer(const LEX_CSTRING *user_name, const LEX_CSTRING *host_name);