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

Method set_variable

sql/sql_lex.cc:9645–9654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9643
9644
9645bool LEX::set_variable(const Lex_ident_sys_st *name, Item *item,
9646 const LEX_CSTRING &expr_str)
9647{
9648 sp_pcontext *ctx;
9649 const Sp_rcontext_handler *rh;
9650 sp_variable *spv= find_variable(name, &ctx, &rh);
9651 return spv ? sphead->set_local_variable(thd, ctx, rh, spv, item, this, true,
9652 expr_str) :
9653 set_system_variable(option_type, name, item);
9654}
9655
9656
9657/**

Callers 3

setMethod · 0.45
exec_coreMethod · 0.45
set_valueMethod · 0.45

Calls 9

set_local_variableMethod · 0.80
is_table_rowtype_refMethod · 0.80
is_cursor_rowtype_refMethod · 0.80
find_row_fieldMethod · 0.80
partMethod · 0.80
parse_errorMethod · 0.45
posMethod · 0.45

Tested by

no test coverage detected