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

Function mysql_derived_init

sql/sql_derived.cc:554–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552*/
553
554static
555bool 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/**

Callers

nothing calls this directly

Calls 3

get_unitMethod · 0.80
init_derivedMethod · 0.80
is_viewMethod · 0.80

Tested by

no test coverage detected