Commit 508d40fb authored by Alexey Botchkov's avatar Alexey Botchkov

MDEV-4788 check mysql-5.5 changes in spatial.cc.

        Additional patch for the 5.5.
parent ae826010
...@@ -793,7 +793,7 @@ int Gis_line_string::store_shapes(Gcalc_shape_transporter *trn) const ...@@ -793,7 +793,7 @@ int Gis_line_string::store_shapes(Gcalc_shape_transporter *trn) const
return 1; return 1;
n_points= uint4korr(data); n_points= uint4korr(data);
data+= 4; data+= 4;
if (n_points < 1 || no_data(data, POINT_DATA_SIZE * n_points)) if (n_points < 1 || not_enough_points(data, n_points))
return 1; return 1;
trn->start_line(); trn->start_line();
...@@ -1230,7 +1230,7 @@ int Gis_polygon::store_shapes(Gcalc_shape_transporter *trn) const ...@@ -1230,7 +1230,7 @@ int Gis_polygon::store_shapes(Gcalc_shape_transporter *trn) const
return 1; return 1;
n_points= uint4korr(data); n_points= uint4korr(data);
data+= 4; data+= 4;
if (!n_points || no_data(data, POINT_DATA_SIZE * n_points)) if (!n_points || not_enough_points(data, n_points))
return 1; return 1;
trn->start_ring(); trn->start_ring();
......
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