valgrind errors in gis.test and funcs_1.storedproc fixed.

Field_geom::store() should check if the source is it's value.
This commit is contained in:
Alexey Botchkov 2013-08-04 23:21:11 +05:00
parent cb5de276a3
commit 8067ced929

View file

@ -7794,7 +7794,8 @@ int Field_geom::store(const char *from, uint length, CHARSET_INFO *cs)
} }
Field_blob::store_length(length); Field_blob::store_length(length);
if (table->copy_blobs || length <= MAX_FIELD_WIDTH) if ((table->copy_blobs || length <= MAX_FIELD_WIDTH) &&
from != value.ptr())
{ // Must make a copy { // Must make a copy
value.copy(from, length, cs); value.copy(from, length, cs);
from= value.ptr(); from= value.ptr();