2738
2738
char key[MAX_KEY_LENGTH];
2739
2739
String str(key,sizeof(key),system_charset_info);
2740
2740
/* Table is opened and defined at this point */
2742
2748
max_length= (MYSQL_ERRMSG_SIZE-
2743
2749
(uint) strlen(ER(ER_FOREIGN_DUPLICATE_KEY)));
2744
2750
if (str.length() >= max_length)