mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-4788 check mysql-5.5 changes in spatial.cc.
Additional patch for the 5.5.
This commit is contained in:
parent
ae82601035
commit
508d40fbdb
1 changed files with 2 additions and 2 deletions
|
@ -793,7 +793,7 @@ int Gis_line_string::store_shapes(Gcalc_shape_transporter *trn) const
|
|||
return 1;
|
||||
n_points= uint4korr(data);
|
||||
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;
|
||||
|
||||
trn->start_line();
|
||||
|
@ -1230,7 +1230,7 @@ int Gis_polygon::store_shapes(Gcalc_shape_transporter *trn) const
|
|||
return 1;
|
||||
n_points= uint4korr(data);
|
||||
data+= 4;
|
||||
if (!n_points || no_data(data, POINT_DATA_SIZE * n_points))
|
||||
if (!n_points || not_enough_points(data, n_points))
|
||||
return 1;
|
||||
|
||||
trn->start_ring();
|
||||
|
|
Loading…
Reference in a new issue