From c9742ceac5bd682e24a435c36524305eecca7950 Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Sat, 15 Nov 2014 21:30:16 +0400 Subject: MDEV-6883 ST_WITHIN crashes server if (0,0) is matched to POLYGON((0 0)). Fixed the case when a polygon contains a single-point ring. --- mysql-test/r/gis.result | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mysql-test/r/gis.result') diff --git a/mysql-test/r/gis.result b/mysql-test/r/gis.result index 6c4d117042a..1d4a1eea8ff 100644 --- a/mysql-test/r/gis.result +++ b/mysql-test/r/gis.result @@ -1540,3 +1540,9 @@ Warnings: Warning 1300 Invalid utf8 character string: 'E043' Warning 1300 Invalid utf8 character string: 'E043' drop table t1; +# +# MDEV-6883 ST_WITHIN crashes server if (0,0) is matched to POLYGON((0 0)) +# +select st_within(GeomFromText('Polygon((0 0))'), Point(0,0)); +st_within(GeomFromText('Polygon((0 0))'), Point(0,0)) +1 -- cgit v1.2.1