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
MCOL-5464: Fixes of bugs from ASAN warnings, part one (#2792)
* Fixes of bugs from ASAN warnings, part one * MQC as static library, with nifty counter for global map and mutex * Switch clang to 16 * link messageqcpp to execplan
This commit is contained in:
@ -104,6 +104,7 @@ const int64_t IDB_pow[19] = {1,
|
||||
100000000000000000LL,
|
||||
1000000000000000000LL};
|
||||
|
||||
|
||||
const int32_t SECS_PER_MIN = 60;
|
||||
const int32_t MINS_PER_HOUR = 60;
|
||||
const int32_t HOURS_PER_DAY = 24;
|
||||
@ -1553,6 +1554,20 @@ inline int128_t strtoll128(const char* data, bool& saturate, char** ep)
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
template <class T>
|
||||
T decimalRangeUp(int32_t precision)
|
||||
{
|
||||
if (precision < 19)
|
||||
{
|
||||
return (T)datatypes::columnstore_precision[precision];
|
||||
}
|
||||
else
|
||||
{
|
||||
return datatypes::ConversionRangeMaxValue[precision - 19];
|
||||
}
|
||||
}
|
||||
|
||||
template <>
|
||||
inline int128_t string_to_ll<int128_t>(const std::string& data, bool& bSaturate)
|
||||
{
|
||||
|
Reference in New Issue
Block a user