Adding the "const" qualifier to st_sp_chistics parameters in a few functions.
This commit is contained in:
parent
95979d2bae
commit
505a11d9ac
@ -41,7 +41,7 @@ static int
|
|||||||
db_load_routine(THD *thd, stored_procedure_type type, const sp_name *name,
|
db_load_routine(THD *thd, stored_procedure_type type, const sp_name *name,
|
||||||
sp_head **sphp,
|
sp_head **sphp,
|
||||||
sql_mode_t sql_mode, const char *params, const char *returns,
|
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_user_name,
|
||||||
LEX_CSTRING *definer_host_name,
|
LEX_CSTRING *definer_host_name,
|
||||||
longlong created, longlong modified,
|
longlong created, longlong modified,
|
||||||
@ -813,7 +813,7 @@ static int
|
|||||||
db_load_routine(THD *thd, stored_procedure_type type,
|
db_load_routine(THD *thd, stored_procedure_type type,
|
||||||
const sp_name *name, sp_head **sphp,
|
const sp_name *name, sp_head **sphp,
|
||||||
sql_mode_t sql_mode, const char *params, const char *returns,
|
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_user_name,
|
||||||
LEX_CSTRING *definer_host_name,
|
LEX_CSTRING *definer_host_name,
|
||||||
longlong created, longlong modified,
|
longlong created, longlong modified,
|
||||||
@ -1392,7 +1392,7 @@ sp_drop_routine(THD *thd, stored_procedure_type type, const sp_name *name)
|
|||||||
|
|
||||||
int
|
int
|
||||||
sp_update_routine(THD *thd, stored_procedure_type type, const sp_name *name,
|
sp_update_routine(THD *thd, stored_procedure_type type, const sp_name *name,
|
||||||
st_sp_chistics *chistics)
|
const st_sp_chistics *chistics)
|
||||||
{
|
{
|
||||||
TABLE *table;
|
TABLE *table;
|
||||||
int ret;
|
int ret;
|
||||||
@ -2201,7 +2201,7 @@ show_create_sp(THD *thd, String *buf,
|
|||||||
const char *params, ulong paramslen,
|
const char *params, ulong paramslen,
|
||||||
const char *returns, ulong returnslen,
|
const char *returns, ulong returnslen,
|
||||||
const char *body, ulong bodylen,
|
const char *body, ulong bodylen,
|
||||||
st_sp_chistics *chistics,
|
const st_sp_chistics *chistics,
|
||||||
const LEX_CSTRING *definer_user,
|
const LEX_CSTRING *definer_user,
|
||||||
const LEX_CSTRING *definer_host,
|
const LEX_CSTRING *definer_host,
|
||||||
sql_mode_t sql_mode)
|
sql_mode_t sql_mode)
|
||||||
|
4
sql/sp.h
4
sql/sp.h
@ -145,7 +145,7 @@ sp_create_routine(THD *thd, stored_procedure_type type, sp_head *sp);
|
|||||||
|
|
||||||
int
|
int
|
||||||
sp_update_routine(THD *thd, stored_procedure_type type, const sp_name *name,
|
sp_update_routine(THD *thd, stored_procedure_type type, const sp_name *name,
|
||||||
st_sp_chistics *chistics);
|
const st_sp_chistics *chistics);
|
||||||
|
|
||||||
int
|
int
|
||||||
sp_drop_routine(THD *thd, stored_procedure_type type, const sp_name *name);
|
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 *params, ulong paramslen,
|
||||||
const char *returns, ulong returnslen,
|
const char *returns, ulong returnslen,
|
||||||
const char *body, ulong bodylen,
|
const char *body, ulong bodylen,
|
||||||
st_sp_chistics *chistics,
|
const st_sp_chistics *chistics,
|
||||||
const LEX_CSTRING *definer_user,
|
const LEX_CSTRING *definer_user,
|
||||||
const LEX_CSTRING *definer_host,
|
const LEX_CSTRING *definer_host,
|
||||||
sql_mode_t sql_mode);
|
sql_mode_t sql_mode);
|
||||||
|
@ -2455,7 +2455,7 @@ sp_head::sp_add_instr_cpush_for_cursors(THD *thd, sp_pcontext *pcontext)
|
|||||||
|
|
||||||
void
|
void
|
||||||
sp_head::set_info(longlong created, longlong modified,
|
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_created= created;
|
||||||
m_modified= modified;
|
m_modified= modified;
|
||||||
|
@ -673,7 +673,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void set_info(longlong created, longlong modified,
|
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 char *definer, uint definerlen);
|
||||||
void set_definer(const LEX_CSTRING *user_name, const LEX_CSTRING *host_name);
|
void set_definer(const LEX_CSTRING *user_name, const LEX_CSTRING *host_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user