diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-03-26 19:09:47 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-03-26 19:09:47 +0100 |
commit | e308d7417bc4ceb1b3b72cac2642015b88f310ff (patch) | |
tree | 2b840dabe2a4581c45e9ec7e14669b2b5558a42a /sql/spatial.h | |
parent | 045c498691f77ac8e0d8c8b9b705325b3425c69d (diff) | |
parent | 48be80cd95c9121d2730ebcd1df2a1a37fe73f3d (diff) | |
download | mariadb-git-e308d7417bc4ceb1b3b72cac2642015b88f310ff.tar.gz |
5.2 merge
Diffstat (limited to 'sql/spatial.h')
-rw-r--r-- | sql/spatial.h | 9 |
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 */ |