diff --git a/cql3/cql3_type.cc b/cql3/cql3_type.cc index 64bcd8a55a..1e55443ddf 100644 --- a/cql3/cql3_type.cc +++ b/cql3/cql3_type.cc @@ -246,6 +246,12 @@ cql3_type::raw::tuple(std::vector> ts) { return make_shared(raw_tuple(std::move(ts))); } +shared_ptr +cql3_type::raw::frozen(shared_ptr t) { + t->freeze(); + return t; +} + thread_local shared_ptr cql3_type::ascii = make("ascii", ascii_type, cql3_type::kind::ASCII); thread_local shared_ptr cql3_type::bigint = make("bigint", long_type, cql3_type::kind::BIGINT); thread_local shared_ptr cql3_type::blob = make("blob", bytes_type, cql3_type::kind::BLOB); diff --git a/cql3/cql3_type.hh b/cql3/cql3_type.hh index 76b6481d8f..c8cba04a67 100644 --- a/cql3/cql3_type.hh +++ b/cql3/cql3_type.hh @@ -64,13 +64,7 @@ public: static shared_ptr list(shared_ptr t); static shared_ptr set(shared_ptr t); static shared_ptr tuple(std::vector> ts); -#if 0 - public static Raw frozen(CQL3Type.Raw t) throws InvalidRequestException - { - t.freeze(); - return t; - } -#endif + static shared_ptr frozen(shared_ptr t); virtual sstring to_string() const = 0; friend std::ostream& operator<<(std::ostream& os, const raw& r); };