Commit 5a107871 authored by hf@deer.mysql.r18.ru's avatar hf@deer.mysql.r18.ru

Merge abotchkov@work.mysql.com:/home/bk/mysql-4.1

into deer.mysql.r18.ru:/home/hf/work/mysql-4.1.clean
parents a05b6e24 bd5fa8d6
...@@ -2666,6 +2666,9 @@ Functions to concatinate various spatial objects ...@@ -2666,6 +2666,9 @@ Functions to concatinate various spatial objects
String *Item_func_point::val_str(String *str) String *Item_func_point::val_str(String *str)
{ {
double x= args[0]->val();
double y= args[1]->val();
if ( (null_value = (args[0]->null_value || if ( (null_value = (args[0]->null_value ||
args[1]->null_value || args[1]->null_value ||
str->realloc(1+4+8+8)))) str->realloc(1+4+8+8))))
...@@ -2674,8 +2677,8 @@ String *Item_func_point::val_str(String *str) ...@@ -2674,8 +2677,8 @@ String *Item_func_point::val_str(String *str)
str->length(0); str->length(0);
str->q_append((char)Geometry::wkbNDR); str->q_append((char)Geometry::wkbNDR);
str->q_append((uint32)Geometry::wkbPoint); str->q_append((uint32)Geometry::wkbPoint);
str->q_append((double)args[0]->val()); str->q_append(x);
str->q_append((double)args[1]->val()); str->q_append(y);
return str; return str;
} }
...@@ -2707,11 +2710,10 @@ String *Item_func_spatial_collection::val_str(String *str) ...@@ -2707,11 +2710,10 @@ String *Item_func_spatial_collection::val_str(String *str)
for (i = 0; i < arg_count; ++i) for (i = 0; i < arg_count; ++i)
{ {
String *res = args[i]->val_str(&arg_value);
if (args[i]->null_value) if (args[i]->null_value)
goto ret; goto ret;
String *res = args[i]->val_str(&arg_value);
if ( coll_type == Geometry::wkbGeometryCollection ) if ( coll_type == Geometry::wkbGeometryCollection )
{ {
/* /*
......
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