1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-19 19:03:26 +03:00

new UDF arguments interface (WL#1017) (SCRUM)

include/mysql_com.h:
  new UDF arguments interface
sql/item.cc:
  added lenghth name foe item (to avoid strlen() call)
sql/item.h:
  added lenghth name foe item (to avoid strlen() call)
sql/item_func.cc:
  new UDF arguments
sql/sql_parse.cc:
  fixed problem with UDF in 5.0
sql/sql_yacc.yy:
  new syntax of UDF arguments
sql/udf_example.cc:
  new UDF example (stupid function to test parameters)
tests/udf_test.res:
  new UDF example (stupid function to test parameters)
tests/udf_test:
  new UDF example (stupid function to test parameters)
This commit is contained in:
unknown
2003-09-13 17:47:59 +03:00
parent 55e776d145
commit 07e372cd6b
9 changed files with 134 additions and 14 deletions

View File

@@ -2986,6 +2986,8 @@ mysql_execute_command(THD *thd)
break;
#ifdef HAVE_DLOPEN
sp_head *sph= sp_find_function(thd, &lex->udf.name);
// close & unlock table opened by sp_find_function
close_thread_tables(thd);
if (sph)
{
net_printf(thd, ER_UDF_EXISTS, lex->udf.name.str);