1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

field_conv.cc:

Data was not converted when ALTER TABLE CHAGE changed a field character set.
This commit is contained in:
bar@bar.mysql.r18.ru
2003-07-11 16:11:17 +05:00
parent 92b3a231d4
commit c994482fad

View File

@@ -489,6 +489,8 @@ void (*Copy_field::get_copy_func(Field *to,Field *from))(Copy_field*)
if (!to->eq_def(from))
return do_field_string;
}
else if (to->charset() != from->charset())
return do_field_string;
else if (to->real_type() == FIELD_TYPE_VAR_STRING && to_length !=
from_length)
return do_varstring;