Fix style errors

This commit is contained in:
potya 2020-05-27 15:13:35 +03:00
parent aea97ba9e4
commit 3ee757df86
2 changed files with 2 additions and 3 deletions

View File

@ -379,7 +379,8 @@ bool DataTypeString::equals(const IDataType & rhs) const
static DataTypePtr create(const ASTPtr & arguments) static DataTypePtr create(const ASTPtr & arguments)
{ {
if (arguments) { if (arguments)
{
if (arguments->children.size() > 1) if (arguments->children.size() > 1)
throw Exception("String data type family mustnt have more than one argument - size in characters", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH); throw Exception("String data type family mustnt have more than one argument - size in characters", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
@ -410,5 +411,4 @@ void registerDataTypeString(DataTypeFactory & factory)
factory.registerAlias("MEDIUMBLOB", "String", DataTypeFactory::CaseInsensitive); factory.registerAlias("MEDIUMBLOB", "String", DataTypeFactory::CaseInsensitive);
factory.registerAlias("LONGBLOB", "String", DataTypeFactory::CaseInsensitive); factory.registerAlias("LONGBLOB", "String", DataTypeFactory::CaseInsensitive);
} }
} }

View File

@ -12,7 +12,6 @@ namespace DB
namespace ErrorCodes namespace ErrorCodes
{ {
extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH; extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH;
extern const int UNEXPECTED_AST_STRUCTURE;
} }
template <typename T> template <typename T>