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

Function alloc_join_nest

sql/opt_subselect.cc:2237–2246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2235
2236
2237static 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

Callers 2

convert_subq_to_sjFunction · 0.85
convert_subq_to_jtbmFunction · 0.85

Calls 1

callocMethod · 0.80

Tested by

no test coverage detected