mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
fixed parsing of Nested DateType in DataTypeFactory [#CONV-7967]
This commit is contained in:
parent
7bee7ed8ca
commit
067375cb69
@ -27,7 +27,7 @@ namespace DB
|
|||||||
|
|
||||||
DataTypeFactory::DataTypeFactory()
|
DataTypeFactory::DataTypeFactory()
|
||||||
: fixed_string_regexp("^FixedString\\s*\\(\\s*(\\d+)\\s*\\)$"),
|
: fixed_string_regexp("^FixedString\\s*\\(\\s*(\\d+)\\s*\\)$"),
|
||||||
nested_regexp("^(\\w+)\\s*\\(\\s*(.+)\\s*\\)$")
|
nested_regexp("^(\\w+)\\s*\\(\\s*(.+)\\s*\\)$", Poco::RegularExpression::RE_MULTILINE | Poco::RegularExpression::RE_DOTALL)
|
||||||
{
|
{
|
||||||
boost::assign::insert(non_parametric_data_types)
|
boost::assign::insert(non_parametric_data_types)
|
||||||
("UInt8", new DataTypeUInt8)
|
("UInt8", new DataTypeUInt8)
|
||||||
@ -49,6 +49,7 @@ DataTypeFactory::DataTypeFactory()
|
|||||||
|
|
||||||
DataTypePtr DataTypeFactory::get(const String & name) const
|
DataTypePtr DataTypeFactory::get(const String & name) const
|
||||||
{
|
{
|
||||||
|
|
||||||
NonParametricDataTypes::const_iterator it = non_parametric_data_types.find(name);
|
NonParametricDataTypes::const_iterator it = non_parametric_data_types.find(name);
|
||||||
if (it != non_parametric_data_types.end())
|
if (it != non_parametric_data_types.end())
|
||||||
return it->second;
|
return it->second;
|
||||||
|
Loading…
Reference in New Issue
Block a user