| 254 | |
| 255 | |
| 256 | bool 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 | |
| 272 | bool sp_rcontext::init_var_table(THD *thd, |
no test coverage detected