1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-09-02 12:41:17 +03:00

MCOL-641 Ternary operation with different datatype of the two

resulting expressions cannot be used as a template argument.
This is because the template instantiation happens at compile time
and cannot depend on the runtime value of the evaluating expression.
This commit is contained in:
Gagan Goel
2020-08-27 12:51:00 -04:00
committed by Roman Nozdrin
parent 1c3a34a3d0
commit 88e106f018
2 changed files with 6 additions and 20 deletions

View File

@@ -156,16 +156,6 @@ inline void getScaleDivisor(T& divisor, const int8_t scale)
}
}
/**
@brief The template to generalise common math operation
execution path using struct from <functional>.
*/
template<typename BinaryOperation, typename OverflowCheck>
void execute(const execplan::IDB_Decimal& l,
const execplan::IDB_Decimal& r,
execplan::IDB_Decimal& result,
BinaryOperation op,
OverflowCheck overflowCheck);
/**
@brief Contains subset of decimal related operations.