dbms: development.

This commit is contained in:
Alexey Milovidov 2011-08-18 20:38:01 +00:00
parent 492cb89aa9
commit 10861629ba

View File

@ -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);
} }