You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
Fixes of bugs from ASAN warnings, part one (#2796)
This commit is contained in:
@@ -102,6 +102,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;
|
||||
@@ -1545,6 +1546,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