mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
dbms: development.
This commit is contained in:
parent
492cb89aa9
commit
10861629ba
@ -46,7 +46,7 @@ DataTypePtr DataTypeFactory::get(const String & name)
|
|||||||
|
|
||||||
Poco::RegularExpression::MatchVec matches;
|
Poco::RegularExpression::MatchVec matches;
|
||||||
if (fixed_string_regexp.match(name, 0, matches) && matches.size() == 2)
|
if (fixed_string_regexp.match(name, 0, matches) && matches.size() == 2)
|
||||||
return new DataTypeFixedString(mysqlxx::String(name.data() + matches[0].offset, matches[0].length, NULL).getUInt());
|
return new DataTypeFixedString(mysqlxx::String(name.data() + matches[1].offset, matches[1].length, NULL).getUInt());
|
||||||
|
|
||||||
throw Exception("Unknown type " + name, ErrorCodes::UNKNOWN_TYPE);
|
throw Exception("Unknown type " + name, ErrorCodes::UNKNOWN_TYPE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user