1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix for bug 848939 Wrong result with ST_INTERSECTION between linestrings and a polygon in 5.3-gis

Coordinates were mistakenly reversed for MULTIPOINT.

per-file comments:
  mysql-test/r/gis-precise.result
Fix for bug 848939 Wrong result with ST_INTERSECTION between linestrings and a polygon in 5.3-gis
        test result updated.
  mysql-test/t/gis-precise.test
Fix for bug 848939 Wrong result with ST_INTERSECTION between linestrings and a polygon in 5.3-gis
        test case added.
  sql/gcalc_tools.cc
Fix for bug 848939 Wrong result with ST_INTERSECTION between linestrings and a polygon in 5.3-gis
        coordinates set in the proper order.
This commit is contained in:
Alexey Botchkov
2011-09-13 18:26:16 +05:00
parent b408b1bbbc
commit 5a04ac7bf0
3 changed files with 11 additions and 5 deletions

View File

@@ -853,8 +853,8 @@ int Gcalc_operation_reducer::add_single_point(const Gcalc_heap::Info *p,
else
{
rp->intersection_point= true;
rp->x= si->get_y();
rp->y= si->get_events()->x;
rp->y= si->get_y();
rp->x= si->get_events()->x;
}
return 0;
}