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

Method alloc_arrays

sql/sp_rcontext.cc:256–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254
255
256bool sp_rcontext::alloc_arrays(THD *thd)
257{
258 {
259 size_t n= m_root_parsing_ctx->max_cursor_index();
260 m_cstack.reset(thd->alloc<sp_cursor*>(n), n);
261 }
262
263 {
264 size_t n= m_root_parsing_ctx->get_num_case_exprs();
265 m_case_expr_holders.reset(thd->calloc<Item_cache *>(n), n);
266 }
267
268 return !m_cstack.array() || !m_case_expr_holders.array();
269}
270
271
272bool sp_rcontext::init_var_table(THD *thd,

Callers 1

createMethod · 0.80

Calls 4

max_cursor_indexMethod · 0.80
get_num_case_exprsMethod · 0.80
arrayMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected