Loading sql/item.cc +3 −3 Original line number Diff line number Diff line Loading @@ -958,7 +958,7 @@ void Item_splocal::print(String *str) } bool Item_splocal::set_value(THD *thd, sp_rcontext *ctx, Item *it) bool Item_splocal::set_value(THD *thd, sp_rcontext *ctx, Item **it) { return ctx->set_variable(thd, get_var_idx(), it); } Loading Loading @@ -5375,9 +5375,9 @@ void Item_trigger_field::set_required_privilege(const bool rw) } bool Item_trigger_field::set_value(THD *thd, sp_rcontext */*ctx*/, Item *it) bool Item_trigger_field::set_value(THD *thd, sp_rcontext */*ctx*/, Item **it) { Item *item= sp_prepare_func_item(thd, &it); Item *item= sp_prepare_func_item(thd, it); return (!item || (!fixed && fix_fields(thd, 0)) || (item->save_in_field(field, 0) < 0)); Loading sql/item.h +4 −4 Original line number Diff line number Diff line Loading @@ -404,7 +404,7 @@ class Settable_routine_parameter FALSE if parameter value has been set, TRUE if error has occured. */ virtual bool set_value(THD *thd, sp_rcontext *ctx, Item *it)= 0; virtual bool set_value(THD *thd, sp_rcontext *ctx, Item **it)= 0; }; Loading Loading @@ -928,7 +928,7 @@ class Item_splocal :public Item_sp_variable, inline Item_result result_type() const; private: bool set_value(THD *thd, sp_rcontext *ctx, Item *it); bool set_value(THD *thd, sp_rcontext *ctx, Item **it); public: Settable_routine_parameter *get_settable_routine_parameter() Loading Loading @@ -2188,7 +2188,7 @@ class Item_trigger_field : public Item_field, private: void set_required_privilege(const bool rw); bool set_value(THD *thd, sp_rcontext *ctx, Item *it); bool set_value(THD *thd, sp_rcontext *ctx, Item **it); public: Settable_routine_parameter *get_settable_routine_parameter() Loading @@ -2196,7 +2196,7 @@ class Item_trigger_field : public Item_field, return (read_only ? 0 : this); } bool set_value(THD *thd, Item *it) bool set_value(THD *thd, Item **it) { return set_value(thd, NULL, it); } Loading sql/item_func.cc +3 −3 Original line number Diff line number Diff line Loading @@ -4121,14 +4121,14 @@ bool Item_func_get_user_var::eq(const Item *item, bool binary_cmp) const bool Item_func_get_user_var::set_value(THD *thd, sp_rcontext */*ctx*/, Item *it) sp_rcontext */*ctx*/, Item **it) { Item_func_set_user_var *suv= new Item_func_set_user_var(get_name(), it); Item_func_set_user_var *suv= new Item_func_set_user_var(get_name(), *it); /* Item_func_set_user_var is not fixed after construction, call fix_fields(). */ return (!suv || suv->fix_fields(thd, &it) || suv->check() || suv->update()); return (!suv || suv->fix_fields(thd, it) || suv->check() || suv->update()); } Loading sql/item_func.h +1 −1 Original line number Diff line number Diff line Loading @@ -1209,7 +1209,7 @@ class Item_func_get_user_var :public Item_func, bool eq(const Item *item, bool binary_cmp) const; private: bool set_value(THD *thd, sp_rcontext *ctx, Item *it); bool set_value(THD *thd, sp_rcontext *ctx, Item **it); public: Settable_routine_parameter *get_settable_routine_parameter() Loading sql/sp_head.cc +2 −2 Original line number Diff line number Diff line Loading @@ -1552,7 +1552,7 @@ sp_head::execute_procedure(THD *thd, List<Item> *args) DBUG_ASSERT(srp); if (srp->set_value(thd, octx, nctx->get_item(i))) if (srp->set_value(thd, octx, nctx->get_item_addr(i))) { err_status= TRUE; break; Loading Loading @@ -2393,7 +2393,7 @@ sp_instr_set_trigger_field::execute(THD *thd, uint *nextp) int sp_instr_set_trigger_field::exec_core(THD *thd, uint *nextp) { const int res= (trigger_field->set_value(thd, value) ? -1 : 0); const int res= (trigger_field->set_value(thd, &value) ? -1 : 0); *nextp = m_ip+1; return res; } Loading Loading
sql/item.cc +3 −3 Original line number Diff line number Diff line Loading @@ -958,7 +958,7 @@ void Item_splocal::print(String *str) } bool Item_splocal::set_value(THD *thd, sp_rcontext *ctx, Item *it) bool Item_splocal::set_value(THD *thd, sp_rcontext *ctx, Item **it) { return ctx->set_variable(thd, get_var_idx(), it); } Loading Loading @@ -5375,9 +5375,9 @@ void Item_trigger_field::set_required_privilege(const bool rw) } bool Item_trigger_field::set_value(THD *thd, sp_rcontext */*ctx*/, Item *it) bool Item_trigger_field::set_value(THD *thd, sp_rcontext */*ctx*/, Item **it) { Item *item= sp_prepare_func_item(thd, &it); Item *item= sp_prepare_func_item(thd, it); return (!item || (!fixed && fix_fields(thd, 0)) || (item->save_in_field(field, 0) < 0)); Loading
sql/item.h +4 −4 Original line number Diff line number Diff line Loading @@ -404,7 +404,7 @@ class Settable_routine_parameter FALSE if parameter value has been set, TRUE if error has occured. */ virtual bool set_value(THD *thd, sp_rcontext *ctx, Item *it)= 0; virtual bool set_value(THD *thd, sp_rcontext *ctx, Item **it)= 0; }; Loading Loading @@ -928,7 +928,7 @@ class Item_splocal :public Item_sp_variable, inline Item_result result_type() const; private: bool set_value(THD *thd, sp_rcontext *ctx, Item *it); bool set_value(THD *thd, sp_rcontext *ctx, Item **it); public: Settable_routine_parameter *get_settable_routine_parameter() Loading Loading @@ -2188,7 +2188,7 @@ class Item_trigger_field : public Item_field, private: void set_required_privilege(const bool rw); bool set_value(THD *thd, sp_rcontext *ctx, Item *it); bool set_value(THD *thd, sp_rcontext *ctx, Item **it); public: Settable_routine_parameter *get_settable_routine_parameter() Loading @@ -2196,7 +2196,7 @@ class Item_trigger_field : public Item_field, return (read_only ? 0 : this); } bool set_value(THD *thd, Item *it) bool set_value(THD *thd, Item **it) { return set_value(thd, NULL, it); } Loading
sql/item_func.cc +3 −3 Original line number Diff line number Diff line Loading @@ -4121,14 +4121,14 @@ bool Item_func_get_user_var::eq(const Item *item, bool binary_cmp) const bool Item_func_get_user_var::set_value(THD *thd, sp_rcontext */*ctx*/, Item *it) sp_rcontext */*ctx*/, Item **it) { Item_func_set_user_var *suv= new Item_func_set_user_var(get_name(), it); Item_func_set_user_var *suv= new Item_func_set_user_var(get_name(), *it); /* Item_func_set_user_var is not fixed after construction, call fix_fields(). */ return (!suv || suv->fix_fields(thd, &it) || suv->check() || suv->update()); return (!suv || suv->fix_fields(thd, it) || suv->check() || suv->update()); } Loading
sql/item_func.h +1 −1 Original line number Diff line number Diff line Loading @@ -1209,7 +1209,7 @@ class Item_func_get_user_var :public Item_func, bool eq(const Item *item, bool binary_cmp) const; private: bool set_value(THD *thd, sp_rcontext *ctx, Item *it); bool set_value(THD *thd, sp_rcontext *ctx, Item **it); public: Settable_routine_parameter *get_settable_routine_parameter() Loading
sql/sp_head.cc +2 −2 Original line number Diff line number Diff line Loading @@ -1552,7 +1552,7 @@ sp_head::execute_procedure(THD *thd, List<Item> *args) DBUG_ASSERT(srp); if (srp->set_value(thd, octx, nctx->get_item(i))) if (srp->set_value(thd, octx, nctx->get_item_addr(i))) { err_status= TRUE; break; Loading Loading @@ -2393,7 +2393,7 @@ sp_instr_set_trigger_field::execute(THD *thd, uint *nextp) int sp_instr_set_trigger_field::exec_core(THD *thd, uint *nextp) { const int res= (trigger_field->set_value(thd, value) ? -1 : 0); const int res= (trigger_field->set_value(thd, &value) ? -1 : 0); *nextp = m_ip+1; return res; } Loading