mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
correct parameter of hash_search
This commit is contained in:
parent
8d29692013
commit
1220b05c3d
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ int mysql_create_function(THD *thd,udf_func *udf)
|
||||||
}
|
}
|
||||||
|
|
||||||
rw_wrlock(&THR_LOCK_udf);
|
rw_wrlock(&THR_LOCK_udf);
|
||||||
if ((hash_search(&udf_hash,(byte*) &udf->name.str, udf->name.length)))
|
if ((hash_search(&udf_hash,(byte*) udf->name.str, udf->name.length)))
|
||||||
{
|
{
|
||||||
net_printf(thd, ER_UDF_EXISTS, udf->name);
|
net_printf(thd, ER_UDF_EXISTS, udf->name);
|
||||||
goto err;
|
goto err;
|
||||||
|
|
Loading…
Add table
Reference in a new issue