diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-07-09 12:47:42 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-07-09 16:18:54 +0400 |
commit | 4dc85973b432ac6a17964c2897439e902676e55b (patch) | |
tree | 37638fc2b6fdb19da7d5bb4880bead89d132a9b9 /sql/sql_lex.cc | |
parent | 0940e25d69cea59d6026f894b1fd9a5ebb55378c (diff) | |
download | mariadb-git-4dc85973b432ac6a17964c2897439e902676e55b.tar.gz |
MDEV-19994 Add class Function_collection
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index 0716efeb514..5fc52d83a48 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -8609,6 +8609,20 @@ Item *LEX::make_item_func_call_generic(THD *thd, Lex_ident_cli_st *cdb, } +Item *LEX::make_item_func_call_native_or_parse_error(THD *thd, + Lex_ident_cli_st &name, + List<Item> *args) +{ + Create_func *builder= find_native_function_builder(thd, &name); + DBUG_EXECUTE_IF("make_item_func_call_native_simulate_not_found", + builder= NULL;); + if (builder) + return builder->create_func(thd, &name, args); + thd->parse_error(ER_SYNTAX_ERROR, name.end()); + return NULL; +} + + Item *LEX::create_item_qualified_asterisk(THD *thd, const Lex_ident_sys_st *name) { |