1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Changing a LEX::sp_variable_declarations_finalize() parameter

from "const Lex_field_type_st &" to "const Column_definition &".
This commit is contained in:
Alexander Barkov
2016-08-23 11:57:47 +04:00
parent 8ec4cf1f01
commit 71a0a12e61
4 changed files with 8 additions and 6 deletions

View File

@@ -5199,7 +5199,7 @@ void LEX::sp_variable_declarations_init(THD *thd, int nvars)
}
bool LEX::sp_variable_declarations_finalize(THD *thd, int nvars,
const Lex_field_type_st &type,
const Column_definition &cdef,
Item *dflt_value_item)
{
uint num_vars= spcont->context_var_count();
@@ -5219,7 +5219,7 @@ bool LEX::sp_variable_declarations_finalize(THD *thd, int nvars,
return true;
if (!last)
spvar->field_def= *last_field;
spvar->field_def= cdef;
spvar->default_value= dflt_value_item;
spvar->field_def.field_name= spvar->name.str;
@@ -5233,7 +5233,7 @@ bool LEX::sp_variable_declarations_finalize(THD *thd, int nvars,
sp_instr_set *is= new (this->thd->mem_root)
sp_instr_set(sphead->instructions(),
spcont, var_idx, dflt_value_item,
type.field_type(), this, last);
spvar->field_def.sql_type, this, last);
if (is == NULL || sphead->add_instr(is))
return true;
}