| 13214 | |
| 13215 | |
| 13216 | Spvar_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 | |
| 13233 | Item * |
nothing calls this directly
no test coverage detected