| 2235 | |
| 2236 | |
| 2237 | static TABLE_LIST *alloc_join_nest(THD *thd) |
| 2238 | { |
| 2239 | TABLE_LIST *tbl; |
| 2240 | if (!(tbl= (TABLE_LIST*) thd->calloc(ALIGN_SIZE(sizeof(TABLE_LIST))+ |
| 2241 | sizeof(NESTED_JOIN)))) |
| 2242 | return NULL; |
| 2243 | tbl->nested_join= (NESTED_JOIN*) ((uchar*)tbl + |
| 2244 | ALIGN_SIZE(sizeof(TABLE_LIST))); |
| 2245 | return tbl; |
| 2246 | } |
| 2247 | |
| 2248 | /* |
| 2249 | @Note thd->is_fatal_error can be set in case of OOM |
no test coverage detected