diff options
author | Igor Babaev <igor@askmonty.org> | 2012-09-08 22:36:55 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2012-09-08 22:36:55 -0700 |
commit | 8c131f1262099d4088f3c83642bd09cd83aab148 (patch) | |
tree | 9d8351d4eb6bc7603b5225016747078038d506aa /mysql-test/t/gis.test | |
parent | 92eadf641590560cbc29ece9c37c7ed493a89468 (diff) | |
parent | 22de18ddcb97640f8f90c1c88d1dcd795ba1070f (diff) | |
download | mariadb-git-8c131f1262099d4088f3c83642bd09cd83aab148.tar.gz |
Merge 5.5 -> mwl248
Diffstat (limited to 'mysql-test/t/gis.test')
-rw-r--r-- | mysql-test/t/gis.test | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/mysql-test/t/gis.test b/mysql-test/t/gis.test index f4c9de4e7da..b0ad8329cfb 100644 --- a/mysql-test/t/gis.test +++ b/mysql-test/t/gis.test @@ -1293,6 +1293,21 @@ WHERE ST_Contains(ST_Buffer(bridges.position, 15.0), buildings.footprint) = 1; #WHERE lakes.name = 'Blue Lake'; DROP DATABASE gis_ogs; + +--echo # +--echo # BUG #1043845 st_distance() results are incorrect depending on variable order +--echo # + +select st_distance(geomfromtext('LINESTRING(-95.9673005697771 36.13509598461, + -95.9673057475387 36.1344478941074, + -95.9673063519371 36.134484524621, + -95.9673049102515 36.1343976584193)'), + geomfromtext('point(-95.96269500000000000000 36.14181833333330000000)')) ; +select st_distance(geomfromtext('point(-95.96269500000000000000 36.14181833333330000000)'), + geomfromtext('LINESTRING(-95.9673005697771 36.13509598461, + -95.9673057475387 36.1344478941074, + -95.9673063519371 36.134484524621, + -95.9673049102515 36.1343976584193) ')) ; USE test; @@ -1344,4 +1359,3 @@ SELECT 1 FROM g1 WHERE a >= ANY DROP TABLE g1; --echo End of 5.5 tests - |