diff options
author | Varun Gupta <varunraiko1803@gmail.com> | 2017-11-23 10:38:04 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2017-12-04 13:22:29 +0200 |
commit | c12d1ed48ee0708b85fbdbe149d15f6fea2c1e31 (patch) | |
tree | edc7283e665d576945f85267e70c45ae22fd27cb /sql/sp_head.h | |
parent | b213f57dc3f9da93ce444805f7581d982bde9f75 (diff) | |
download | mariadb-git-c12d1ed48ee0708b85fbdbe149d15f6fea2c1e31.tar.gz |
Refactor parts of Item_func_sp into Item_sp
In preparation for implementing custom aggregate functions, refactor
the common code between regular stored functions and aggregate stored
functions. This includes:
* initialising SP result field
* executing a SP
* access checks
In addition, refactor sp_head::execute_function to take two extra
parameters, a function rcontext and a Query_arena. These two paremeters
were initially initialised and destroyed within
sp_head::execute_function, but for aggregate stored functions we will
require control over their lifetime. The owner of these objects now
becomes Item_sp.
Signed-off-by: Vicențiu Ciorbaru <vicentiu@mariadb.org>
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r-- | sql/sp_head.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h index 8d836732a10..1a994bdf70d 100644 --- a/sql/sp_head.h +++ b/sql/sp_head.h @@ -343,7 +343,8 @@ public: GRANT_INFO *grant_info); bool - execute_function(THD *thd, Item **args, uint argcount, Field *return_fld); + execute_function(THD *thd, Item **args, uint argcount, Field *return_fld, + sp_rcontext **nctx, Query_arena *call_arena); bool execute_procedure(THD *thd, List<Item> *args); |