mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
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:
parent
cb5de276a3
commit
8067ced929
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue