mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-14057 InnoDB GIS tests fail.
Tests fixed. MBR::Within() function fixed.
This commit is contained in:
@ -145,12 +145,7 @@ struct MBR
|
||||
(mbr->xmax >= xmin && mbr->xmax <= xmax)));
|
||||
}
|
||||
|
||||
int within(const MBR *mbr)
|
||||
{
|
||||
/* The following should be safe, even if we compare doubles */
|
||||
return ((mbr->xmin <= xmin) && (mbr->ymin <= ymin) &&
|
||||
(mbr->xmax >= xmax) && (mbr->ymax >= ymax));
|
||||
}
|
||||
int within(const MBR *mbr);
|
||||
|
||||
int contains(const MBR *mbr)
|
||||
{
|
||||
|
Reference in New Issue
Block a user