diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2011-09-13 18:26:16 +0500 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2011-09-13 18:26:16 +0500 |
commit | 5a04ac7bf0ee359fb36f4ebc00f0aebc142d36b7 (patch) | |
tree | 0bd5646b6705f0c3c98545a1ed7ba4a697d1b90d /sql/gcalc_tools.cc | |
parent | b408b1bbbc87246df8e9728cec90ce215dc08ec2 (diff) | |
download | mariadb-git-5a04ac7bf0ee359fb36f4ebc00f0aebc142d36b7.tar.gz |
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.
Diffstat (limited to 'sql/gcalc_tools.cc')
-rw-r--r-- | sql/gcalc_tools.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/gcalc_tools.cc b/sql/gcalc_tools.cc index 3ee58646ca4..baff6278444 100644 --- a/sql/gcalc_tools.cc +++ b/sql/gcalc_tools.cc @@ -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; } |