summaryrefslogtreecommitdiff
path: root/sql/spatial.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2013-03-26 21:47:06 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2013-03-26 21:47:06 +0400
commit045c498691f77ac8e0d8c8b9b705325b3425c69d (patch)
treed1e64ca715c07e5cf1d93afb7de6e37858f7a03f /sql/spatial.h
parent51a707486433d3707ac38deb72c6ad7d3d7bb882 (diff)
downloadmariadb-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.h3
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; }
};