summaryrefslogtreecommitdiff
path: root/sql/spatial.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-03-26 19:09:47 +0100
committerSergei Golubchik <sergii@pisem.net>2013-03-26 19:09:47 +0100
commite308d7417bc4ceb1b3b72cac2642015b88f310ff (patch)
tree2b840dabe2a4581c45e9ec7e14669b2b5558a42a /sql/spatial.h
parent045c498691f77ac8e0d8c8b9b705325b3425c69d (diff)
parent48be80cd95c9121d2730ebcd1df2a1a37fe73f3d (diff)
downloadmariadb-git-e308d7417bc4ceb1b3b72cac2642015b88f310ff.tar.gz
5.2 merge
Diffstat (limited to 'sql/spatial.h')
-rw-r--r--sql/spatial.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sql/spatial.h b/sql/spatial.h
index 1108f5d5e50..aa7e8fd0c8d 100644
--- a/sql/spatial.h
+++ b/sql/spatial.h
@@ -212,6 +212,11 @@ struct Geometry_buffer;
class Geometry
{
public:
+ // Maximum number of points in feature that can fit into String
+ static const uint32 max_n_points=
+ (uint32) (INT_MAX32 - WKB_HEADER_SIZE - 4 /* n_points */) /
+ POINT_DATA_SIZE;
+public:
Geometry() {} /* Remove gcc warning */
virtual ~Geometry() {} /* Remove gcc warning */
static void *operator new(size_t size, void *buffer)
@@ -393,10 +398,6 @@ public:
class Gis_line_string: public Geometry
{
- // Maximum number of points in LineString that can fit into String
- static const uint32 max_n_points=
- (uint32) (UINT_MAX32 - WKB_HEADER_SIZE - 4 /* n_points */) /
- POINT_DATA_SIZE;
public:
Gis_line_string() {} /* Remove gcc warning */
virtual ~Gis_line_string() {} /* Remove gcc warning */