diff options
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r-- | sql/sp_head.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h index b582d37a185..2a8f8a1e017 100644 --- a/sql/sp_head.h +++ b/sql/sp_head.h @@ -66,7 +66,21 @@ public: // Initialize after we have reset mem_root void - init(LEX_STRING *name, LEX *lex, LEX_STRING *comment, char suid); + init(LEX_STRING *name, LEX *lex); + + void + init_options(LEX_STRING *comment, enum suid_behaviour suid) + { + m_comment.length= 0; + m_comment.str= 0; + if (comment) + { + m_comment.length= comment->length; + m_comment.str= comment->str; + } + m_suid= suid ? suid - 1 : 1; + } + int create(THD *thd); @@ -83,6 +97,12 @@ public: int execute_procedure(THD *thd, List<Item> *args); + int + show_create_procedure(THD *thd); + + int + show_create_function(THD *thd); + inline void add_instr(sp_instr *i) { |