You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-641 Replaced IDB_Decima.__v union with int128_t attribute.
Moved all tests into ./test Introduced ./datatypes directory
This commit is contained in:
@ -288,13 +288,9 @@ inline void ArithmeticOperator::execute(IDB_Decimal& result, IDB_Decimal op1, ID
|
||||
switch (fOp)
|
||||
{
|
||||
case OP_ADD:
|
||||
if (resultCscType.precision > 18)
|
||||
if (resultCscType.colWidth == 16)
|
||||
{
|
||||
// WIP make this a separate function w and w/o overflow check
|
||||
if (resultCscType.colDataType == execplan::CalpontSystemCatalog::DECIMAL)
|
||||
result.__v.__s128 = op1.__v.__s128 + op2.__v.__s128;
|
||||
else
|
||||
result.__v.__u128 = op1.__v.__u128 + op2.__v.__u128;
|
||||
result.s128Value = op1.s128Value + op2.s128Value;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user