MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / has_named_parameters

Function has_named_parameters

sql/item_create.cc:2742–2756  ·  view source on GitHub ↗

Checks if there are named parameters in a parameter list. The syntax to name parameters in a function call is as follow: foo(expr AS named, expr named, expr AS "named", expr "named") @param params The parameter list, can be null @return true if one or more parameter is named */

Source from the content-addressed store, hash-verified

2740 @return true if one or more parameter is named
2741*/
2742static bool has_named_parameters(List<Item> *params)
2743{
2744 if (params)
2745 {
2746 Item *param;
2747 List_iterator<Item> it(*params);
2748 while ((param= it++))
2749 {
2750 if (! param->item_name.is_autogenerated())
2751 return true;
2752 }
2753 }
2754
2755 return false;
2756}
2757
2758#ifndef HAVE_SPATIAL
2759Create_func_no_geom Create_func_no_geom::s_singleton;

Callers 2

createMethod · 0.85
create_funcMethod · 0.85

Calls 1

is_autogeneratedMethod · 0.80

Tested by

no test coverage detected