You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Fix(MCOL-4611): mod loses precision on huge narrow decimal (#3473)
This commit is contained in:
@ -381,7 +381,7 @@ class Func_mod : public Func_Real
|
||||
return static_cast<ModType>(integralRemainder.toTFloat128() + intAndFract.second);
|
||||
}
|
||||
}
|
||||
int64_t value = d.value / pow(10.0, d.scale);
|
||||
int64_t value = d.value / static_cast<int64_t>(pow(10.0, d.scale));
|
||||
return value % div;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user