| 552 | */ |
| 553 | |
| 554 | static |
| 555 | bool mysql_derived_init(THD *thd, LEX *lex, TABLE_LIST *derived) |
| 556 | { |
| 557 | SELECT_LEX_UNIT *unit= derived->get_unit(); |
| 558 | DBUG_ENTER("mysql_derived_init"); |
| 559 | DBUG_PRINT("enter", ("Alias: '%s' Unit: %p", |
| 560 | (derived->alias.str ? derived->alias.str : "<NULL>"), |
| 561 | derived->get_unit())); |
| 562 | |
| 563 | // Skip already prepared views/DT |
| 564 | if (!unit || unit->prepared) |
| 565 | DBUG_RETURN(FALSE); |
| 566 | |
| 567 | bool res= derived->init_derived(thd, TRUE); |
| 568 | |
| 569 | derived->updatable= derived->updatable && derived->is_view(); |
| 570 | |
| 571 | DBUG_RETURN(res); |
| 572 | } |
| 573 | |
| 574 | |
| 575 | /** |
nothing calls this directly
no test coverage detected