mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
allow nulls in string field
This commit is contained in:
parent
3c607171d2
commit
4ebde2ac7e
@ -105,6 +105,11 @@ namespace
|
|||||||
static_cast<ColumnString &>(column).insertDataWithTerminatingZero(string_id.data(), string_id.size() + 1);
|
static_cast<ColumnString &>(column).insertDataWithTerminatingZero(string_id.data(), string_id.size() + 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
else if (value.type() == Poco::MongoDB::ElementTraits<Poco::MongoDB::NullValue>::TypeId)
|
||||||
|
{
|
||||||
|
static_cast<ColumnVector<String> &>(column).getData().emplace_back();
|
||||||
|
break;
|
||||||
|
}
|
||||||
else if (value.type() == Poco::MongoDB::ElementTraits<String>::TypeId)
|
else if (value.type() == Poco::MongoDB::ElementTraits<String>::TypeId)
|
||||||
{
|
{
|
||||||
String string = static_cast<const Poco::MongoDB::ConcreteElement<String> &>(value).value();
|
String string = static_cast<const Poco::MongoDB::ConcreteElement<String> &>(value).value();
|
||||||
|
Loading…
Reference in New Issue
Block a user