| 6498 | |
| 6499 | |
| 6500 | SELECT_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 | |
| 6518 | SELECT_LEX *LEX::alloc_select(bool select) |
no test coverage detected