1
0
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:
Alexey Botchkov
2020-03-18 13:55:21 +04:00
parent 09e8707d90
commit a0ce62f804
19 changed files with 281 additions and 256 deletions

View File

@ -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)
{