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

Method init_nested_join

sql/sql_parse.cc:8280–8300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8278*/
8279
8280bool st_select_lex::init_nested_join(THD *thd)
8281{
8282 TABLE_LIST *ptr;
8283 NESTED_JOIN *nested_join;
8284 DBUG_ENTER("init_nested_join");
8285
8286 if (unlikely(!(ptr= (TABLE_LIST*) thd->calloc(ALIGN_SIZE(sizeof(TABLE_LIST))+
8287 sizeof(NESTED_JOIN)))))
8288 DBUG_RETURN(1);
8289 nested_join= ptr->nested_join=
8290 ((NESTED_JOIN*) ((uchar*) ptr + ALIGN_SIZE(sizeof(TABLE_LIST))));
8291
8292 ptr->embedding= embedding;
8293 ptr->join_list= join_list;
8294 ptr->alias.str="(nested_join)";
8295 ptr->alias.length= sizeof("(nested_join)")-1;
8296 embedding= ptr;
8297 join_list= &nested_join->join_list;
8298 join_list->empty();
8299 DBUG_RETURN(0);
8300}
8301
8302
8303/**

Callers

nothing calls this directly

Calls 2

callocMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected