summaryrefslogtreecommitdiff
path: root/sql/sp_head.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/sp_head.cc
parente7d7910b7a926ccc6f5b8d73d55ac511f1c03c3d (diff)
downloadmariadb-git-ec6d8dadc01269451332e5b24b12a5350a2a4896.tar.gz
reduce code duplication a littlemariadb-5.5.54
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index 9bfa60a07d3..69364eaa43f 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -488,12 +488,8 @@ check_routine_name(LEX_STRING *ident)
my_error(ER_SP_WRONG_NAME, MYF(0), ident->str);
return TRUE;
}
- if (check_string_char_length(ident, "", NAME_CHAR_LEN,
- system_charset_info, 1))
- {
- my_error(ER_TOO_LONG_IDENT, MYF(0), ident->str);
+ if (check_ident_length(ident))
return TRUE;
- }
return FALSE;
}