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;