summaryrefslogtreecommitdiff
path: root/sql/field_conv.cc
diff options
context:
space:
mode:
authorGuilhem Bichot <guilhem@mysql.com>2010-11-22 10:13:46 +0100
committerGuilhem Bichot <guilhem@mysql.com>2010-11-22 10:13:46 +0100
commit8f02025b21e73e78a2afdd9b99e23f15cb5729e0 (patch)
tree67f7c0f077528f725c54efa26d2644c4188f1438 /sql/field_conv.cc
parent9d9699209d9ca66648db8aff46f6b66a4c1c18de (diff)
parent96b0404940f7b704c4f8dd599455d4d2f013a297 (diff)
downloadmariadb-git-8f02025b21e73e78a2afdd9b99e23f15cb5729e0.tar.gz
merge of 5.1-bugteam
Diffstat (limited to 'sql/field_conv.cc')
-rw-r--r--sql/field_conv.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/sql/field_conv.cc b/sql/field_conv.cc
index ea6ff82e0aa..20c647ccc00 100644
--- a/sql/field_conv.cc
+++ b/sql/field_conv.cc
@@ -787,11 +787,8 @@ int field_conv(Field *to,Field *from)
((Field_varstring*)from)->length_bytes ==
((Field_varstring*)to)->length_bytes))
{ // Identical fields
-#ifdef HAVE_purify
- /* This may happen if one does 'UPDATE ... SET x=x' */
- if (to->ptr != from->ptr)
-#endif
- memcpy(to->ptr,from->ptr,to->pack_length());
+ // to->ptr==from->ptr may happen if one does 'UPDATE ... SET x=x'
+ memmove(to->ptr, from->ptr, to->pack_length());
return 0;
}
}