summaryrefslogtreecommitdiff
path: root/sql/field_conv.cc
diff options
context:
space:
mode:
authorbar@bar.mysql.r18.ru <>2002-12-11 17:12:55 +0400
committerbar@bar.mysql.r18.ru <>2002-12-11 17:12:55 +0400
commit40f828d5f1bc004b735725a83e1a57db3687edbc (patch)
tree637c5013c6af554aff41f67a3c7cb54dac975245 /sql/field_conv.cc
parent34033b9389026adfc59516e88d8d326c88aec8b7 (diff)
downloadmariadb-git-40f828d5f1bc004b735725a83e1a57db3687edbc.tar.gz
Some system_charset_info and default_charset_info were replaced by my_charset_latin1
Diffstat (limited to 'sql/field_conv.cc')
-rw-r--r--sql/field_conv.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/field_conv.cc b/sql/field_conv.cc
index 409c22d61d4..0a8c122812c 100644
--- a/sql/field_conv.cc
+++ b/sql/field_conv.cc
@@ -263,7 +263,8 @@ static void do_conv_blob(Copy_field *copy)
{
copy->from_field->val_str(&copy->tmp,&copy->tmp);
((Field_blob *) copy->to_field)->store(copy->tmp.ptr(),
- copy->tmp.length(),default_charset_info);
+ copy->tmp.length(),
+ copy->tmp.charset());
}
/* Save blob in copy->tmp for GROUP BY */
@@ -275,7 +276,8 @@ static void do_save_blob(Copy_field *copy)
copy->from_field->val_str(&res,&res);
copy->tmp.copy(res);
((Field_blob *) copy->to_field)->store(copy->tmp.ptr(),
- copy->tmp.length(),default_charset_info);
+ copy->tmp.length(),
+ copy->tmp.charset());
}
@@ -284,7 +286,7 @@ static void do_field_string(Copy_field *copy)
char buff[MAX_FIELD_WIDTH];
copy->tmp.set_quick(buff,sizeof(buff),default_charset_info);
copy->from_field->val_str(&copy->tmp,&copy->tmp);
- copy->to_field->store(copy->tmp.c_ptr_quick(),copy->tmp.length(),default_charset_info);
+ copy->to_field->store(copy->tmp.c_ptr_quick(),copy->tmp.length(),copy->tmp.charset());
}