diff --git a/dbms/include/DB/Functions/FunctionsFormatting.h b/dbms/include/DB/Functions/FunctionsFormatting.h index b01612242af..6888ed907ab 100644 --- a/dbms/include/DB/Functions/FunctionsFormatting.h +++ b/dbms/include/DB/Functions/FunctionsFormatting.h @@ -35,8 +35,8 @@ public: const IDataType * type = &*arguments[0]; if (!type->isNumeric() || - !dynamic_cast(type) || - !dynamic_cast(type)) + dynamic_cast(type) || + dynamic_cast(type)) throw Exception("Cannot format " + type->getName() + " as bitmask String", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT); return new DataTypeString;