diff options
author | unknown <malff@lambda.hsd1.co.comcast.net.> | 2007-10-16 11:16:31 -0600 |
---|---|---|
committer | unknown <malff@lambda.hsd1.co.comcast.net.> | 2007-10-16 11:16:31 -0600 |
commit | 28ef3b2a7fcfb67b9319251a264b274eb3617d8b (patch) | |
tree | cb255a5a791fb89a3c5e9ecfa1dbf2f7c4e0a04a /sql/sql_udf.cc | |
parent | f1d7a96b0a9432793a93571c682aea5fd7e17966 (diff) | |
download | mariadb-git-28ef3b2a7fcfb67b9319251a264b274eb3617d8b.tar.gz |
Implementing code review comments
mysql-test/r/sp.result:
Added tests for coverage
mysql-test/t/sp.test:
Added tests for coverage
sql/sql_udf.cc:
Code cleanup
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r-- | sql/sql_udf.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 077660f0bb9..ce6cd43eace 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -426,14 +426,14 @@ int mysql_create_function(THD *thd,udf_func *udf) } if (udf->name.length > NAME_LEN) { - my_error(ER_TOO_LONG_IDENT, MYF(0), udf->name); + my_error(ER_TOO_LONG_IDENT, MYF(0), udf->name.str); DBUG_RETURN(1); } rw_wrlock(&THR_LOCK_udf); if ((hash_search(&udf_hash,(byte*) udf->name.str, udf->name.length))) { - my_error(ER_UDF_EXISTS, MYF(0), udf->name); + my_error(ER_UDF_EXISTS, MYF(0), udf->name.str); goto err; } if (!(dl = find_udf_dl(udf->dl))) |