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

Method alloc_unit

sql/sql_lex.cc:6500–6515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6498
6499
6500SELECT_LEX_UNIT *LEX::alloc_unit()
6501{
6502 SELECT_LEX_UNIT *unit;
6503 DBUG_ENTER("LEX::alloc_unit");
6504 if (!(unit= new (thd->mem_root) SELECT_LEX_UNIT()))
6505 DBUG_RETURN(NULL);
6506
6507 unit->init_query();
6508 /* TODO: reentrant problem */
6509 unit->thd= thd;
6510 unit->link_next= 0;
6511 unit->link_prev= 0;
6512 /* TODO: remove return_to */
6513 unit->return_to= NULL;
6514 DBUG_RETURN(unit);
6515}
6516
6517
6518SELECT_LEX *LEX::alloc_select(bool select)

Callers 2

attach_selects_chainMethod · 0.80
mysql_new_selectFunction · 0.80

Calls 1

init_queryMethod · 0.80

Tested by

no test coverage detected