summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2002-12-19 15:27:46 +0400
committerunknown <bar@bar.mysql.r18.ru>2002-12-19 15:27:46 +0400
commitd19ba004e45cb33f5dce8182b633a54af3b9c4c3 (patch)
treec3e6bd23507975df60294ce53fadcc33d3a0b554 /sql/sql_select.cc
parentef9c22611960eb3e7ebf1d0e4a53f47e3ef62480 (diff)
downloadmariadb-git-d19ba004e45cb33f5dce8182b633a54af3b9c4c3.tar.gz
Less "default_charset_info"
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 602a4b494b6..988cae8363b 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -6645,12 +6645,14 @@ store_record_in_cache(JOIN_CACHE *cache)
{
if (last_record)
{
- copy->blob_field->get_image((char*) pos,copy->length+sizeof(char*));
+ copy->blob_field->get_image((char*) pos,copy->length+sizeof(char*),
+ copy->blob_field->charset());
pos+=copy->length+sizeof(char*);
}
else
{
- copy->blob_field->get_image((char*) pos,copy->length); // blob length
+ copy->blob_field->get_image((char*) pos,copy->length, // blob length
+ copy->blob_field->charset());
memcpy(pos+copy->length,copy->str,copy->blob_length); // Blob data
pos+=copy->length+copy->blob_length;
}
@@ -6707,7 +6709,8 @@ read_cached_record(JOIN_TAB *tab)
{
if (last_record)
{
- copy->blob_field->set_image((char*) pos,copy->length+sizeof(char*));
+ copy->blob_field->set_image((char*) pos,copy->length+sizeof(char*),
+ copy->blob_field->charset());
pos+=copy->length+sizeof(char*);
}
else