From c5e617ea78f2c2ec1bc52028677d2c328151fbfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dziepak?= Date: Mon, 22 Jun 2015 09:54:44 +0200 Subject: [PATCH] schema: add NAME_LENGTH constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's probably not the best place for this constant, but that's where it is in origin. Signed-off-by: Paweł Dziepak --- schema.cc | 2 ++ schema.hh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/schema.cc b/schema.cc index 241f150006..3fcb1633a7 100644 --- a/schema.cc +++ b/schema.cc @@ -8,6 +8,8 @@ #include "schema_builder.hh" #include +constexpr int32_t schema::NAME_LENGTH; + template std::vector get_column_types(const Sequence& column_definitions) { diff --git a/schema.hh b/schema.hh index 05799ab2ab..6b72be06f5 100644 --- a/schema.hh +++ b/schema.hh @@ -169,6 +169,8 @@ public: typedef boost::iterator_range iterator_range_type; typedef boost::iterator_range const_iterator_range_type; + static constexpr int32_t NAME_LENGTH = 48; + struct column { bytes name; data_type type;