clickhouse: fixed build [#CONV-6788].

This commit is contained in:
Michael Kolupaev 2013-03-06 13:56:11 +00:00
parent 35023d04b8
commit a46833bbeb
2 changed files with 7 additions and 2 deletions

View File

@ -127,8 +127,8 @@ typedef ColumnConst<Array> ColumnConstArray;
template <typename T> ColumnConst<T>::ColumnConst(size_t s_, const T & data_) : s(s_), data(data_) {}
template <typename T> ColumnConst<T>::ColumnConst(size_t s_, const T & data_, DataTypePtr nested_type_) { throw Exception("Can't create non-array ColumnConst with nested type", ErrorCodes::LOGICAL_ERROR); }
template <> ColumnConst<Array>::ColumnConst(size_t s_, const Array & data_) { throw Exception("Can't create ColumnConst<Array> without nested type", ErrorCodes::LOGICAL_ERROR); }
template <> ColumnConst<Array>::ColumnConst(size_t s_, const Array & data_, DataTypePtr nested_type_) : s(s_), data(data_), nested_type(nested_type_) {}
template <> ColumnConst<Array>::ColumnConst(size_t s_, const Array & data_);
template <> ColumnConst<Array>::ColumnConst(size_t s_, const Array & data_, DataTypePtr nested_type_);
template <typename T> ColumnPtr ColumnConst<T>::convertToFullColumn() const

View File

@ -6,6 +6,10 @@
namespace DB
{
template <> ColumnConst<Array>::ColumnConst(size_t s_, const Array & data_) { throw Exception("Can't create ColumnConst<Array> without nested type", ErrorCodes::LOGICAL_ERROR); }
template <> ColumnConst<Array>::ColumnConst(size_t s_, const Array & data_, DataTypePtr nested_type_) : s(s_), data(data_), nested_type(nested_type_) {}
template <> ColumnPtr ColumnConst<String>::convertToFullColumn() const
{
@ -48,4 +52,5 @@ template <> ColumnPtr ColumnConst<Array>::convertToFullColumn() const
return res;
}
}