1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

5.2 merge

This commit is contained in:
Sergei Golubchik
2012-05-20 14:57:29 +02:00
117 changed files with 2793 additions and 337 deletions

View File

@ -712,7 +712,8 @@ int Gis_line_string::is_closed(int *closed) const
return 0;
}
data+= 4;
if (no_data(data, POINT_DATA_SIZE * n_points))
if (n_points == 0 ||
no_data(data, POINT_DATA_SIZE * n_points))
return 1;
/* Get first point */