Skip to content

Commit d2cb428

Browse files
committed
Merge branch 'mysql-5.5' into mysql-5.6
2 parents 8ca59dc + 55a2bab commit d2cb428

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

sql/sql_yacc.yy

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5562,6 +5562,12 @@ part_name:
55625562
{
55635563
partition_info *part_info= Lex->part_info;
55645564
partition_element *p_elem= part_info->curr_part_elem;
5565+
if (check_string_char_length(&$1, "", NAME_CHAR_LEN,
5566+
system_charset_info, true))
5567+
{
5568+
my_error(ER_TOO_LONG_IDENT, MYF(0), $1.str);
5569+
MYSQL_YYABORT;
5570+
}
55655571
p_elem->partition_name= $1.str;
55665572
}
55675573
;
@@ -5856,7 +5862,15 @@ sub_part_definition:
58565862

58575863
sub_name:
58585864
ident_or_text
5859-
{ Lex->part_info->curr_part_elem->partition_name= $1.str; }
5865+
{
5866+
if (check_string_char_length(&$1, "", NAME_CHAR_LEN,
5867+
system_charset_info, true))
5868+
{
5869+
my_error(ER_TOO_LONG_IDENT, MYF(0), $1.str);
5870+
MYSQL_YYABORT;
5871+
}
5872+
Lex->part_info->curr_part_elem->partition_name= $1.str;
5873+
}
58605874
;
58615875

58625876
opt_part_options:

0 commit comments

Comments
 (0)