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

Method init_spvar_definition

sql/sql_lex.cc:13216–13230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13214
13215
13216Spvar_definition *LEX::init_spvar_definition(THD *thd,
13217 const Lex_ident_sys_st &name)
13218{
13219 Spvar_definition *res;
13220 if (unlikely(check_string_char_length(&name, 0, NAME_CHAR_LEN,
13221 system_charset_info, 1)))
13222 {
13223 my_error(ER_TOO_LONG_IDENT, MYF(0), name.str);
13224 return NULL;
13225 }
13226 if (unlikely(!(res= new (thd->mem_root) Spvar_definition())))
13227 return NULL;
13228 init_last_field(res, &name);
13229 return res;
13230}
13231
13232
13233Item *

Callers

nothing calls this directly

Calls 2

check_string_char_lengthFunction · 0.85
my_errorFunction · 0.85

Tested by

no test coverage detected