From fd69ee1275e66b5423e6e687f30c1a64610487ec Mon Sep 17 00:00:00 2001 From: dimarub2000 Date: Sat, 6 Jul 2019 01:18:37 +0300 Subject: [PATCH] Exect -> Exact grammar improved --- dbms/src/DataTypes/DataTypesDecimal.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dbms/src/DataTypes/DataTypesDecimal.cpp b/dbms/src/DataTypes/DataTypesDecimal.cpp index 9dd811e7aec..920d7b360bd 100644 --- a/dbms/src/DataTypes/DataTypesDecimal.cpp +++ b/dbms/src/DataTypes/DataTypesDecimal.cpp @@ -241,7 +241,7 @@ static DataTypePtr create(const ASTPtr & arguments) } template -static DataTypePtr createExect(const ASTPtr & arguments) +static DataTypePtr createExact(const ASTPtr & arguments) { if (!arguments || arguments->children.size() != 1) throw Exception("Decimal data type family must have exactly two arguments: precision and scale", @@ -260,9 +260,9 @@ static DataTypePtr createExect(const ASTPtr & arguments) void registerDataTypeDecimal(DataTypeFactory & factory) { - factory.registerDataType("Decimal32", createExect, DataTypeFactory::CaseInsensitive); - factory.registerDataType("Decimal64", createExect, DataTypeFactory::CaseInsensitive); - factory.registerDataType("Decimal128", createExect, DataTypeFactory::CaseInsensitive); + factory.registerDataType("Decimal32", createExact, DataTypeFactory::CaseInsensitive); + factory.registerDataType("Decimal64", createExact, DataTypeFactory::CaseInsensitive); + factory.registerDataType("Decimal128", createExact, DataTypeFactory::CaseInsensitive); factory.registerDataType("Decimal", create, DataTypeFactory::CaseInsensitive); factory.registerAlias("DEC", "Decimal", DataTypeFactory::CaseInsensitive);