diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2013-03-26 21:47:06 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2013-03-26 21:47:06 +0400 |
commit | 045c498691f77ac8e0d8c8b9b705325b3425c69d (patch) | |
tree | d1e64ca715c07e5cf1d93afb7de6e37858f7a03f /sql/spatial.h | |
parent | 51a707486433d3707ac38deb72c6ad7d3d7bb882 (diff) | |
download | mariadb-git-045c498691f77ac8e0d8c8b9b705325b3425c69d.tar.gz |
GEOMETRYCOLLECTION EMPTY handling fixed.
The get_mbr() method shouldn't return the error, rather an invalid MBR
in this case.
Diffstat (limited to 'sql/spatial.h')
-rw-r--r-- | sql/spatial.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/spatial.h b/sql/spatial.h index 6850cc804d0..1108f5d5e50 100644 --- a/sql/spatial.h +++ b/sql/spatial.h @@ -199,6 +199,9 @@ struct MBR return (d == intersection.dimension()); } + + int valid() const + { return xmin <= xmax && ymin <= ymax; } }; |