item_strfunc.cc:

Fix
This commit is contained in:
bar@bar.mysql.r18.ru 2003-02-13 13:10:23 +04:00
parent 58e00848d1
commit 32da4054ee

View file

@ -2790,8 +2790,8 @@ String *Item_func_spatial_collection::val_str(String *str)
if (len < WKB_HEADER_SIZE)
goto ret;
data+=WKB_HEADER_SIZE;
len-=WKB_HEADER_SIZE;
data-=WKB_HEADER_SIZE;
len+=WKB_HEADER_SIZE;
if (str->reserve(len,512))
goto ret;
str->q_append(data,len);