Branch refactoring.

This commit is contained in:
Dmitry Rubashkin 2019-09-17 11:17:46 +03:00
parent 6fa925c263
commit 2252ee5a90

View File

@ -187,6 +187,12 @@ Field convertFieldToTypeImpl(const Field & src, const IDataType & type, const ID
return dynamic_cast<const IDataTypeEnum &>(type).castToValue(src);
}
if (which_type.isDateOrDateTime() && src.getType() == Field::Types::UInt64)
{
/// We don't need any conversion UInt64 is under type of Date and DateTime
return src;
}
if (src.getType() == Field::Types::String)
{
if (which_type.isDate())