mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 07:15:33 +02:00
Fix for bug #848901 Assertion `fabs(cur_isc->x-m_cur_intersection->x) + fabs(cur_isc->y-m_cur_intersection->y) < 0.000000000001' failed in Gcalc_scan_iterator::intersection_scan() in maria-5.3-gis
That assertion's check was too tight. Released it a bit.
per-file comments:
mysql-test/r/gis-precise.result
Fix for bug #848901
test result updated.
mysql-test/t/gis-precise.test
Fix for bug #848901
test case added.
sql/gcalc_slicescan.cc
Fix for bug #848901
The DBUG_ASSERT check is too tight here.
This commit is contained in:
parent
3882c5d62c
commit
b408b1bbbc
3 changed files with 7 additions and 1 deletions
|
|
@ -950,7 +950,7 @@ int Gcalc_scan_iterator::intersection_scan()
|
|||
/* The superfluous intersection should be close to the current. */
|
||||
DBUG_ASSERT(fabs(cur_isc->x-m_cur_intersection->x) +
|
||||
fabs(cur_isc->y-m_cur_intersection->y) <
|
||||
INTERSECTION_ZERO);
|
||||
0.00000000001);
|
||||
isc->next= isc->next->next;
|
||||
free_item(cur_isc);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue