Commit 2c967c5b authored by unknown's avatar unknown

Bug #21072 Duplicate key error in NDB references wrong key: wrong indent for code block

parent bac1f130
......@@ -1114,10 +1114,10 @@ void handler::print_error(int error, myf errflag)
key_unpack(&str,table,(uint) key_nr);
uint max_length=MYSQL_ERRMSG_SIZE-(uint) strlen(ER(ER_DUP_ENTRY));
if (str.length() >= max_length)
{
{
str.length(max_length-4);
str.append("...");
}
}
}
my_error(ER_DUP_ENTRY,MYF(0),str.c_ptr(),key_nr+1);
DBUG_VOID_RETURN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment