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

Function view_algorithm

sql/sql_show.cc:2701–2717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2699*/
2700
2701static const LEX_CSTRING *view_algorithm(TABLE_LIST *table)
2702{
2703 static const LEX_CSTRING undefined= { STRING_WITH_LEN("UNDEFINED") };
2704 static const LEX_CSTRING merge= { STRING_WITH_LEN("MERGE") };
2705 static const LEX_CSTRING temptable= { STRING_WITH_LEN("TEMPTABLE") };
2706 switch (table->algorithm) {
2707 case VIEW_ALGORITHM_TMPTABLE:
2708 return &temptable;
2709 case VIEW_ALGORITHM_MERGE:
2710 return &merge;
2711 default:
2712 DBUG_ASSERT(0); // never should happen
2713 /* fall through */
2714 case VIEW_ALGORITHM_UNDEFINED:
2715 return &undefined;
2716 }
2717}
2718
2719
2720static bool append_at_host(THD *thd, String *buffer, const LEX_CSTRING *host)

Callers 2

view_store_optionsFunction · 0.85
sql_show.ccFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected