diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2011-06-20 00:21:41 +0500 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2011-06-20 00:21:41 +0500 |
commit | b826c888417e258dc0da6b6c0d011960db38f4b9 (patch) | |
tree | 4ab265b3c9f0db0fbc7cde2ebdd8073a10278f5f /mysql-test/t/gis.test | |
parent | 9d51588e9560e963fa6087513098c940b70b2e3d (diff) | |
parent | 4058115cf74d00fcf0e432b23981c6393d5abbc5 (diff) | |
download | mariadb-git-b826c888417e258dc0da6b6c0d011960db38f4b9.tar.gz |
gis-related tests fixes.
merging.
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r-- | mysql-test/t/gis.test | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test index 416a40630bc..fa6a7dc4675 100644 --- a/mysql-test/t/gis.test +++ b/mysql-test/t/gis.test @@ -361,7 +361,7 @@ t1 where object_id=85998; # Expected result is 36.3310176346905, but IA64 returns 36.3310176346904 # due to fused multiply-add instructions. ---replace_result 36.3310176346904 36.3310176346905 +--replace_result 36.3310176346904 36.3310176346905 -114.87787186923326 -114.87787186923313 36.33101763469053 36.33101763469059 36.33101763469043 36.33101763469059 select object_id, geometrytype(geo), ISSIMPLE(GEO), ASTEXT(centroid(geo)) from t1 where object_id=85984; @@ -735,6 +735,28 @@ SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000 SET @a=POLYFROMWKB(@a); +# +# Bug #57321 crashes and valgrind errors from spatial types +# + +create table t1(a polygon NOT NULL)engine=myisam; +insert into t1 values (geomfromtext("point(0 1)")); +insert into t1 values (geomfromtext("point(1 0)")); +select * from (select polygon(t1.a) as p from t1 order by t1.a) d; +drop table t1; + + +--echo # +--echo # Test for bug #59888 "debug assertion when attempt to create spatial index +--echo # on char > 31 bytes". +--echo # +create table t1(a char(32) not null) engine=myisam; +--replace_regex /'[^']*test\.#sql-[0-9a-f_]*'/'#sql-temporary'/ +--error ER_SPATIAL_MUST_HAVE_GEOM_COL +create spatial index i on t1 (a); +drop table t1; + + --echo End of 5.1 tests # |