Update FunctionBinaryArithmetic.h

This commit is contained in:
Yarik Briukhovetskyi 2024-03-02 01:16:47 +01:00 committed by GitHub
parent 0b10612c86
commit 57482de0f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,7 +171,7 @@ public:
using ResultDataType = Switch<
/// Result must be Integer
Case<IsOperation<Operation>::int_div || IsOperation<Operation>::int_div_or_zero,
std::conditional_t<IsDataTypeNumber<LeftDataType> && IsDataTypeNumber<RightDataType>, DataTypeFromFieldType<typename Op::ResultType>, InvalidType>>,
std::conditional_t<IsDataTypeDecimalOrNumber<LeftDataType> && IsDataTypeDecimalOrNumber<RightDataType>, DataTypeFromFieldType<typename Op::ResultType>, InvalidType>>,
/// Decimal cases
Case<IsDataTypeDecimal<LeftDataType> || IsDataTypeDecimal<RightDataType>, DecimalResultDataType>,
Case<