summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-12-22 13:02:32 +0100
committerSergei Golubchik <serg@mariadb.org>2016-12-22 13:02:32 +0100
commitec6d8dadc01269451332e5b24b12a5350a2a4896 (patch)
tree07fe81d656860cde996b976e29fb20df40b12459 /sql/sql_udf.cc
parente7d7910b7a926ccc6f5b8d73d55ac511f1c03c3d (diff)
downloadmariadb-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.cc6
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