summaryrefslogtreecommitdiff
path: root/sql/sp.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-07-31 17:34:59 +0400
committerAlexander Barkov <bar@mariadb.org>2017-07-31 17:34:59 +0400
commit4937474f862010c90f76bf879a70c1edf17e7c85 (patch)
tree2c95821a22c9c2fd83e06b4ad9fa7048c70be4c9 /sql/sp.h
parent716898755a308f7803eecd3e139e9c58603980c7 (diff)
downloadmariadb-git-4937474f862010c90f76bf879a70c1edf17e7c85.tar.gz
MDEV-13414 Fix the SP code to avoid excessive use of strlen
Diffstat (limited to 'sql/sp.h')
-rw-r--r--sql/sp.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/sql/sp.h b/sql/sp.h
index dc93b8b20ee..6e9c032e4c4 100644
--- a/sql/sp.h
+++ b/sql/sp.h
@@ -213,10 +213,13 @@ extern "C" uchar* sp_sroutine_key(const uchar *ptr, size_t *plen,
TABLE *open_proc_table_for_read(THD *thd, Open_tables_backup *backup);
sp_head *
-sp_load_for_information_schema(THD *thd, TABLE *proc_table, String *db,
- String *name, sql_mode_t sql_mode,
+sp_load_for_information_schema(THD *thd, TABLE *proc_table,
stored_procedure_type type,
- const char *returns, const char *params,
+ const LEX_CSTRING &db,
+ const LEX_CSTRING &name,
+ const LEX_CSTRING &params,
+ const LEX_CSTRING &returns,
+ sql_mode_t sql_mode,
bool *free_sp_head);
bool load_charset(MEM_ROOT *mem_root,
@@ -234,14 +237,13 @@ void sp_returns_type(THD *thd,
sp_head *sp);
bool show_create_sp(THD *thd, String *buf,
- stored_procedure_type type,
- const char *db, ulong dblen,
- const char *name, ulong namelen,
- const char *params, ulong paramslen,
- const char *returns, ulong returnslen,
- const char *body, ulong bodylen,
- const st_sp_chistics &chistics,
- const LEX_CSTRING *definer_user,
- const LEX_CSTRING *definer_host,
- sql_mode_t sql_mode);
+ stored_procedure_type type,
+ const LEX_CSTRING &db,
+ const LEX_CSTRING &name,
+ const LEX_CSTRING &params,
+ const LEX_CSTRING &returns,
+ const LEX_CSTRING &body,
+ const st_sp_chistics &chistics,
+ const AUTHID &definer,
+ sql_mode_t sql_mode);
#endif /* _SP_H_ */