MCPcopy Create free account
hub / github.com/MariaDB/server / sp_param_init

Method sp_param_init

sql/sql_lex.cc:6800–6810  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6798
6799
6800sp_variable *LEX::sp_param_init(LEX_CSTRING *name)
6801{
6802 if (spcont->find_variable(name, true))
6803 {
6804 my_error(ER_SP_DUP_PARAM, MYF(0), name->str);
6805 return NULL;
6806 }
6807 sp_variable *spvar= spcont->add_variable(thd, name);
6808 init_last_field(&spvar->field_def, name);
6809 return spvar;
6810}
6811
6812
6813bool LEX::sp_param_fill_definition(sp_variable *spvar,

Callers

nothing calls this directly

Calls 3

my_errorFunction · 0.85
add_variableMethod · 0.80
find_variableMethod · 0.45

Tested by

no test coverage detected