diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2013-03-22 17:32:27 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2013-03-22 17:32:27 +0400 |
commit | 2b89b0a271fb9d32ad8a509bd8774a5059a8a480 (patch) | |
tree | 24ddd18607b10f4342cc7dcc45e56a15c4c790a7 /mysql-test/t | |
parent | 4d49175fde5364344c34a9c9fc0aadd2733d3f4c (diff) | |
download | mariadb-git-2b89b0a271fb9d32ad8a509bd8774a5059a8a480.tar.gz |
MDEV-4310 geometry function equals hangs forever.
The Geometry::get_mbr() function can return an error on
a bad data. We have to check for that and act respectively.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/gis.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test index cdbc253869e..6b4578c39c1 100644 --- a/mysql-test/t/gis.test +++ b/mysql-test/t/gis.test @@ -1355,6 +1355,7 @@ WHERE ST_Contains(ST_Buffer(bridges.position, 15.0), buildings.footprint) = 1; #WHERE lakes.name = 'Blue Lake'; DROP DATABASE gis_ogs; +USE test; --echo # --echo # BUG #1043845 st_distance() results are incorrect depending on variable order @@ -1371,3 +1372,12 @@ select st_distance(geomfromtext('point(-95.96269500000000000000 36.1418183333333 -95.9673063519371 36.134484524621, -95.9673049102515 36.1343976584193) ')) ; +--echo # +--echo # MDEV-4310 geometry function equals hangs forever. +--echo # +create table t1(a geometry not null)engine=myisam; +insert into t1 values(geomfromtext("POINT(0 0)")); +insert into t1 values(geomfromtext("POINT(0 9.2233720368548e18)")); +insert into t1 values(geomfromtext("POINT(0 9.2233720368548e18)")); +select equals(`a`,convert(`a` using utf8)) from `t1`; +drop table t1; |