Commit 8d296920 authored by unknown's avatar unknown

correct parameter of hash_result

(SCRUM)


sql/sql_udf.cc:
  correct parameter of hash_search
  (deleted old bugs, added new bugs)
parent 6dc8a385
...@@ -378,7 +378,7 @@ int mysql_create_function(THD *thd,udf_func *udf) ...@@ -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, 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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment