mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
c
This commit is contained in:
commit
431e042b5d
72 changed files with 958 additions and 116 deletions
|
|
@ -361,10 +361,11 @@ static void do_save_blob(Copy_field *copy)
|
|||
static void do_field_string(Copy_field *copy)
|
||||
{
|
||||
char buff[MAX_FIELD_WIDTH];
|
||||
copy->tmp.set_quick(buff,sizeof(buff),copy->tmp.charset());
|
||||
copy->from_field->val_str(©->tmp);
|
||||
copy->to_field->store(copy->tmp.c_ptr_quick(),copy->tmp.length(),
|
||||
copy->tmp.charset());
|
||||
String res(buff, sizeof(buff), copy->from_field->charset());
|
||||
res.length(0U);
|
||||
|
||||
copy->from_field->val_str(&res);
|
||||
copy->to_field->store(res.c_ptr_quick(), res.length(), res.charset());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue