summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2012-03-17 01:26:58 -0700
committerIgor Babaev <igor@askmonty.org>2012-03-17 01:26:58 -0700
commit5d954e7cd0f9f4106d848a7d7fc8fbce35668785 (patch)
treebd812fb49b473d759c5054fe89d12e4dc1e50a59 /sql/records.cc
parentd110e0377dda1bb9f5a5c36745d3a6feb8e8a1d4 (diff)
parent5338a28912589f1169b66b880a489ec5636bcd83 (diff)
downloadmariadb-git-5d954e7cd0f9f4106d848a7d7fc8fbce35668785.tar.gz
Merge 5.3->5.5
Diffstat (limited to 'sql/records.cc')
-rw-r--r--sql/records.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/records.cc b/sql/records.cc
index 5050064926b..77fdc427b86 100644
--- a/sql/records.cc
+++ b/sql/records.cc
@@ -507,7 +507,8 @@ static int rr_unpack_from_tempfile(READ_RECORD *info)
if (my_b_read(info->io_cache, info->rec_buf, info->ref_length))
return -1;
TABLE *table= info->table;
- (*table->sort.unpack)(table->sort.addon_field, info->rec_buf);
+ (*table->sort.unpack)(table->sort.addon_field, info->rec_buf,
+ info->rec_buf + info->ref_length);
return 0;
}
@@ -558,7 +559,8 @@ static int rr_unpack_from_buffer(READ_RECORD *info)
if (info->cache_pos == info->cache_end)
return -1; /* End of buffer */
TABLE *table= info->table;
- (*table->sort.unpack)(table->sort.addon_field, info->cache_pos);
+ (*table->sort.unpack)(table->sort.addon_field, info->cache_pos,
+ info->cache_end);
info->cache_pos+= info->ref_length;
return 0;