diff options
author | unknown <anozdrin/alik@ibm.> | 2007-05-29 21:22:33 +0400 |
---|---|---|
committer | unknown <anozdrin/alik@ibm.> | 2007-05-29 21:22:33 +0400 |
commit | 0e9f4eaaf3498fb3247defd032d4711746e4ec4b (patch) | |
tree | 655f13d13102baede6201d0392e0291e2ef699ad /sql/sp.h | |
parent | 33409eb87b8edae7ccb13bf0bf559573e891185c (diff) | |
download | mariadb-git-0e9f4eaaf3498fb3247defd032d4711746e4ec4b.tar.gz |
Refactoring patch:
1. Refactor sp_show_create_function() and sp_show_create_procedure()
into show_create_routine().
2. Code cleanup: eliminate proxy functions.
sql/sp.cc:
Code cleanup: eliminate proxy functions.
sql/sp.h:
Code cleanup: eliminate proxy functions.
sql/sp_head.cc:
1. Refactor sp_show_create_function() and sp_show_create_procedure()
into show_create_routine().
2. Code cleanup: eliminate proxy functions.
sql/sp_head.h:
1. Refactor sp_show_create_function() and sp_show_create_procedure()
into show_create_routine().
2. Code cleanup: eliminate proxy functions.
sql/sql_parse.cc:
Code cleanup: use new functions.
Diffstat (limited to 'sql/sp.h')
-rw-r--r-- | sql/sp.h | 29 |
1 files changed, 6 insertions, 23 deletions
@@ -44,37 +44,20 @@ sp_exist_routines(THD *thd, TABLE_LIST *procs, bool any, bool no_error); int sp_routine_exists_in_table(THD *thd, int type, sp_name *name); -int -sp_create_procedure(THD *thd, sp_head *sp); - -int -sp_drop_procedure(THD *thd, sp_name *name); - +bool +sp_show_create_routine(THD *thd, int type, sp_name *name); int -sp_update_procedure(THD *thd, sp_name *name, st_sp_chistics *chistics); +sp_show_status_routine(THD *thd, int type, const char *wild); int -sp_show_create_procedure(THD *thd, sp_name *name); +sp_create_routine(THD *thd, int type, sp_head *sp); int -sp_show_status_procedure(THD *thd, const char *wild); +sp_update_routine(THD *thd, int type, sp_name *name, st_sp_chistics *chistics); int -sp_create_function(THD *thd, sp_head *sp); - -int -sp_drop_function(THD *thd, sp_name *name); - -int -sp_update_function(THD *thd, sp_name *name, st_sp_chistics *chistics); - -int -sp_show_create_function(THD *thd, sp_name *name); - -int -sp_show_status_function(THD *thd, const char *wild); - +sp_drop_routine(THD *thd, int type, sp_name *name); /* Procedures for pre-caching of stored routines and building table list |