1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-5317 out parameters in PREPARE "SELECT ... INTO"

originally based on the patch by Antony T Curtis
This commit is contained in:
Sergei Golubchik
2014-08-13 21:04:05 +02:00
parent 278f7fdd7e
commit a99af484cd
14 changed files with 351 additions and 9 deletions

View File

@ -4781,6 +4781,17 @@ public:
virtual bool set(THD *thd, Item *val) = 0;
};
class my_var_param: public my_var {
public:
Settable_routine_parameter *param;
my_var_param(Item_param *p)
: my_var(null_lex_str, PARAM_VAR),
param(p->get_settable_routine_parameter())
{ p->inout= Item_param::OUT_PARAM; }
~my_var_param() { }
bool set(THD *thd, Item *val);
};
class my_var_sp: public my_var {
public:
uint offset;