diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-04-11 16:15:08 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-04-11 16:15:08 +0400 |
commit | 5bf7046fa762f02c6dde197b99f7615f9a5eda15 (patch) | |
tree | b7a6bb44c16469b258ac163baf9bf95fa3072f6c /sql/sp.h | |
parent | 958e634d25bf9e96d48592579a1f5e7f30659324 (diff) | |
download | mariadb-git-5bf7046fa762f02c6dde197b99f7615f9a5eda15.tar.gz |
Adding the const quafilier to "sp_name *" parameters in a few routine.
Diffstat (limited to 'sql/sp.h')
-rw-r--r-- | sql/sp.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -122,7 +122,7 @@ sp_drop_db_routines(THD *thd, char *db); bool lock_db_routines(THD *thd, char *db); sp_head * -sp_find_routine(THD *thd, stored_procedure_type type, sp_name *name, +sp_find_routine(THD *thd, stored_procedure_type type, const sp_name *name, sp_cache **cp, bool cache_only); int @@ -131,24 +131,24 @@ sp_cache_routine(THD *thd, Sroutine_hash_entry *rt, int -sp_cache_routine(THD *thd, stored_procedure_type type, sp_name *name, +sp_cache_routine(THD *thd, stored_procedure_type type, const sp_name *name, bool lookup_only, sp_head **sp); bool sp_exist_routines(THD *thd, TABLE_LIST *procs, bool is_proc); bool -sp_show_create_routine(THD *thd, stored_procedure_type type, sp_name *name); +sp_show_create_routine(THD *thd, stored_procedure_type type, const sp_name *name); bool sp_create_routine(THD *thd, stored_procedure_type type, sp_head *sp); int -sp_update_routine(THD *thd, stored_procedure_type type, sp_name *name, +sp_update_routine(THD *thd, stored_procedure_type type, const sp_name *name, st_sp_chistics *chistics); int -sp_drop_routine(THD *thd, stored_procedure_type type, sp_name *name); +sp_drop_routine(THD *thd, stored_procedure_type type, const sp_name *name); /** @@ -192,7 +192,7 @@ public: Procedures for handling sets of stored routines used by statement or routine. */ void sp_add_used_routine(Query_tables_list *prelocking_ctx, Query_arena *arena, - sp_name *rt, stored_procedure_type rt_type); + const sp_name *rt, stored_procedure_type rt_type); bool sp_add_used_routine(Query_tables_list *prelocking_ctx, Query_arena *arena, const MDL_key *key, TABLE_LIST *belong_to_view); void sp_remove_not_own_routines(Query_tables_list *prelocking_ctx); |