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

Function view_store_options

sql/sql_show.cc:2681–2694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2679
2680
2681void view_store_options(THD *thd, TABLE_LIST *table, String *buff)
2682{
2683 if (table->algorithm != VIEW_ALGORITHM_INHERIT)
2684 {
2685 buff->append(STRING_WITH_LEN("ALGORITHM="));
2686 buff->append(view_algorithm(table));
2687 }
2688 buff->append(' ');
2689 append_definer(thd, buff, &table->definer.user, &table->definer.host);
2690 if (table->view_suid)
2691 buff->append(STRING_WITH_LEN("SQL SECURITY DEFINER "));
2692 else
2693 buff->append(STRING_WITH_LEN("SQL SECURITY INVOKER "));
2694}
2695
2696
2697/**

Callers 4

show_create_viewFunction · 0.85
create_view_queryFunction · 0.85
create_view_defFunction · 0.85
mysql_create_viewFunction · 0.85

Calls 3

view_algorithmFunction · 0.85
append_definerFunction · 0.85
appendMethod · 0.45

Tested by

no test coverage detected