From dfed401e695f56f328d670f08df9396beef84c5c Mon Sep 17 00:00:00 2001 From: "wax@mysql.com" <> Date: Sun, 26 Jan 2003 07:00:01 +0500 Subject: [PATCH] correct parameter of hash_result (SCRUM) --- sql/sql_udf.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 001b2acb136..cdbe35cf621 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -378,7 +378,7 @@ int mysql_create_function(THD *thd,udf_func *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); goto err;