From 10861629ba776320a56c04f99f85dfae1ec61b0c Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 18 Aug 2011 20:38:01 +0000 Subject: [PATCH] dbms: development. --- dbms/src/DataTypes/DataTypeFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/DataTypes/DataTypeFactory.cpp b/dbms/src/DataTypes/DataTypeFactory.cpp index 6e139e25044..d95954f3a15 100644 --- a/dbms/src/DataTypes/DataTypeFactory.cpp +++ b/dbms/src/DataTypes/DataTypeFactory.cpp @@ -46,7 +46,7 @@ DataTypePtr DataTypeFactory::get(const String & name) Poco::RegularExpression::MatchVec matches; 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); }