File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff 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
58575863sub_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
58625876opt_part_options:
You can’t perform that action at this time.
0 commit comments