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

Function function_plugin_find_native_function_builder

sql/item_create.cc:6653–6667  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6651
6652
6653static Create_func *
6654function_plugin_find_native_function_builder(THD *thd, const LEX_CSTRING &name)
6655{
6656 plugin_ref plugin;
6657 if ((plugin= my_plugin_lock_by_name(thd, &name, MariaDB_FUNCTION_PLUGIN)))
6658 {
6659 Create_func *builder=
6660 reinterpret_cast<Plugin_function*>(plugin_decl(plugin)->info)->
6661 create_func();
6662 // TODO: MDEV-20846 Add proper unlocking for MariaDB_FUNCTION_PLUGIN
6663 plugin_unlock(thd, plugin);
6664 return builder;
6665 }
6666 return NULL;
6667}
6668
6669
6670Create_func *

Callers 1

findMethod · 0.85

Calls 2

plugin_unlockFunction · 0.85
create_funcMethod · 0.45

Tested by

no test coverage detected