summaryrefslogtreecommitdiff
path: root/sql/filesort.cc
diff options
context:
space:
mode:
authorTor Didriksen <tor.didriksen@oracle.com>2011-08-29 09:50:27 +0200
committerTor Didriksen <tor.didriksen@oracle.com>2011-08-29 09:50:27 +0200
commit901ed42eb908fc8c310c60496a1752a28336b40c (patch)
tree3cd0183ef1e9841813bbbb7cce8e13fddc003134 /sql/filesort.cc
parent10637a2589108c1094d390ac14f3f7376179b7b0 (diff)
parentdb065d2719c6997a8bac68d980b14c4212cddc3d (diff)
downloadmariadb-git-901ed42eb908fc8c310c60496a1752a28336b40c.tar.gz
merge 5.1 => 5.5
Diffstat (limited to 'sql/filesort.cc')
-rw-r--r--sql/filesort.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/sql/filesort.cc b/sql/filesort.cc
index c3250b6e699..8a0b37af339 100644
--- a/sql/filesort.cc
+++ b/sql/filesort.cc
@@ -972,21 +972,10 @@ static void make_sortkey(register SORTPARAM *param,
if (addonf->null_bit && field->is_null())
{
nulls[addonf->null_offset]|= addonf->null_bit;
-#ifdef HAVE_purify
- bzero(to, addonf->length);
-#endif
}
else
{
-#ifdef HAVE_purify
- uchar *end= field->pack(to, field->ptr);
- uint length= (uint) ((to + addonf->length) - end);
- DBUG_ASSERT((int) length >= 0);
- if (length)
- bzero(end, length);
-#else
(void) field->pack(to, field->ptr);
-#endif
}
to+= addonf->length;
}