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 */
| 2740 | @return true if one or more parameter is named |
| 2741 | */ |
| 2742 | static 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 |
| 2759 | Create_func_no_geom Create_func_no_geom::s_singleton; |
no test coverage detected