diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-12-22 13:02:32 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-22 13:02:32 +0100 |
commit | ec6d8dadc01269451332e5b24b12a5350a2a4896 (patch) | |
tree | 07fe81d656860cde996b976e29fb20df40b12459 /sql/sql_udf.cc | |
parent | e7d7910b7a926ccc6f5b8d73d55ac511f1c03c3d (diff) | |
download | mariadb-git-ec6d8dadc01269451332e5b24b12a5350a2a4896.tar.gz |
reduce code duplication a littlemariadb-5.5.54
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r-- | sql/sql_udf.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 626e5569ccc..d18498de784 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -455,12 +455,8 @@ int mysql_create_function(THD *thd,udf_func *udf) my_message(ER_UDF_NO_PATHS, ER(ER_UDF_NO_PATHS), MYF(0)); DBUG_RETURN(1); } - if (check_string_char_length(&udf->name, "", NAME_CHAR_LEN, - system_charset_info, 1)) - { - my_error(ER_TOO_LONG_IDENT, MYF(0), udf->name.str); + if (check_ident_length(&udf->name)) DBUG_RETURN(1); - } /* Turn off row binlogging of this statement and use statement-based |