Commit 6cd2a668 authored by Igor Babaev's avatar Igor Babaev

Corrected the fix for LP bug 672551.

parent 46fe4318
...@@ -553,13 +553,6 @@ void Copy_field::set(uchar *to,Field *from) ...@@ -553,13 +553,6 @@ void Copy_field::set(uchar *to,Field *from)
else else
{ {
to_null_ptr= 0; // For easy debugging to_null_ptr= 0; // For easy debugging
/* Setup optimal copying for varchar */
if (from->real_type() == MYSQL_TYPE_VARCHAR)
{
do_copy= (((Field_varstring*) from)->length_bytes == 1 ?
do_varstring1 : do_varstring2);
}
else
do_copy= do_field_eq; do_copy= do_field_eq;
} }
} }
...@@ -722,7 +715,6 @@ Copy_field::get_copy_func(Field *to,Field *from) ...@@ -722,7 +715,6 @@ Copy_field::get_copy_func(Field *to,Field *from)
else else
return (((Field_varstring*) from)->length_bytes == 1 ? return (((Field_varstring*) from)->length_bytes == 1 ?
do_varstring1 : do_varstring2); do_varstring1 : do_varstring2);
} }
else if (to_length < from_length) else if (to_length < from_length)
return (from->charset()->mbmaxlen == 1 ? return (from->charset()->mbmaxlen == 1 ?
......
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