Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
antaljanosbenjamin committed Mar 25, 2024
1 parent 684e6e9 commit 271e44b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Functions/FunctionDateOrDateTimeAddInterval.h
Expand Up @@ -544,7 +544,7 @@ class FunctionDateOrDateTimeAddInterval : public IFunction
}
else
{
if (!WhichDataType(arguments[0].type).isDateTimeOrDateTime64()
if (!(isDateTime(arguments[0].type) || isDateTime64(arguments[0].type))
|| !WhichDataType(arguments[2].type).isString())
{
throw Exception(ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT, "Function {} supports 2 or 3 arguments. "
Expand Down

0 comments on commit 271e44b

Please sign in to comment.