diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-05-20 14:57:29 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-05-20 14:57:29 +0200 |
commit | 7f6f53a8df10c76f93848c8d06bc5af71051c525 (patch) | |
tree | 9a539823cdf05f53574fdf91941b3a242025acba /sql/spatial.cc | |
parent | 0e7e724d6b36b2f5b8a0604171adb750d7c82c9c (diff) | |
parent | 280fcf08085e43b5359ec79c0e34166e51b3ebd8 (diff) | |
download | mariadb-git-7f6f53a8df10c76f93848c8d06bc5af71051c525.tar.gz |
5.2 merge
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r-- | sql/spatial.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc index 288c7dabbaf..44c5ea411b7 100644 --- a/sql/spatial.cc +++ b/sql/spatial.cc @@ -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 */ |