diff options
author | gluh@gluh.mysql.r18.ru <> | 2003-11-17 21:21:36 +0400 |
---|---|---|
committer | gluh@gluh.mysql.r18.ru <> | 2003-11-17 21:21:36 +0400 |
commit | ee4ed0c969f61227b6b928c6c956fa6589aff341 (patch) | |
tree | 121785070fab8fad08af454596559be157ddaade /sql/sp_head.h | |
parent | 81c4cca68619bb232aa1acac78d08b8354f1fb7b (diff) | |
download | mariadb-git-ee4ed0c969f61227b6b928c6c956fa6589aff341.tar.gz |
WL#1241: SHOW PROCEDURE/FUNCTION
WL#1263: Support for the attributes COMMENT and SUID
in CREATE/ALTER PROCEDURE/FUNCTION
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) { |