summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authorserg@serg.mylan <>2005-03-03 23:57:48 +0100
committerserg@serg.mylan <>2005-03-03 23:57:48 +0100
commit3de51f273bebfa1ba911c170df8ffedade73139f (patch)
treeeeb42050da31ef847a2c361f5273273a789afc51 /sql/sql_udf.cc
parente47d0a0e2debb1d4ebbf75bc818efda18e69ed2d (diff)
downloadmariadb-git-3de51f273bebfa1ba911c170df8ffedade73139f.tar.gz
after merge fixes
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index b28b1cb1f92..05df069d69a 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -83,10 +83,10 @@ static char *init_syms(udf_func *tmp, char *nm)
{
char *end;
- if (!((tmp->func= dlsym(tmp->dlhandle, tmp->name))))
- return tmp->name;
+ if (!((tmp->func= dlsym(tmp->dlhandle, tmp->name.str))))
+ return tmp->name.str;
- end=strmov(nm,tmp->name);
+ end=strmov(nm,tmp->name.str);
if (tmp->type == UDFTYPE_AGGREGATE)
{
@@ -193,10 +193,10 @@ void udf_init()
This is done to ensure that only approved dll from the system
directories are used (to make this even remotely secure).
*/
- if (strchr(dl_name, '/') || strlen(name) > NAME_LEN)
+ if (strchr(dl_name, '/') || name.length > NAME_LEN)
{
sql_print_error("Invalid row in mysql.func table for function '%.64s'",
- name);
+ name.str);
continue;
}
@@ -204,7 +204,7 @@ void udf_init()
if (!(tmp= add_udf(&name,(Item_result) table->field[1]->val_int(),
dl_name, udftype)))
{
- sql_print_error("Can't alloc memory for udf function: '%.64s'", name);
+ sql_print_error("Can't alloc memory for udf function: '%.64s'", name.str);
continue;
}
@@ -271,7 +271,7 @@ void udf_free()
{
initialized= 0;
rwlock_destroy(&THR_LOCK_udf);
- }
+ }
DBUG_VOID_RETURN;
}