Commit 8067ced9 authored by Alexey Botchkov's avatar Alexey Botchkov

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

   Field_geom::store() should check if the source is it's value.
parent cb5de276
...@@ -7794,7 +7794,8 @@ int Field_geom::store(const char *from, uint length, CHARSET_INFO *cs) ...@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment