You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-27 16:01:57 +03:00
Fix constexpr compilation issues in centos 7
This commit is contained in:
@@ -247,7 +247,7 @@ public:
|
||||
@brief The method detects whether decimal type is wide
|
||||
using csc colType.
|
||||
*/
|
||||
constexpr inline bool isWideDecimalType() const
|
||||
inline bool isWideDecimalType() const
|
||||
{
|
||||
return (colDataType == DECIMAL ||
|
||||
colDataType == UDECIMAL) &&
|
||||
@@ -262,7 +262,7 @@ public:
|
||||
@brief The method detects whether decimal type is wide
|
||||
using datatype and width.
|
||||
*/
|
||||
static constexpr inline bool isWideDecimalType(const datatypes::SystemCatalog::ColDataType &dt,
|
||||
static inline bool isWideDecimalType(const datatypes::SystemCatalog::ColDataType &dt,
|
||||
const int32_t width)
|
||||
{
|
||||
return width == MAXDECIMALWIDTH &&
|
||||
|
@@ -270,7 +270,7 @@ class Decimal
|
||||
@brief The method detects whether decimal type is wide
|
||||
using precision.
|
||||
*/
|
||||
static constexpr inline bool isWideDecimalTypeByPrecision(const int32_t precision)
|
||||
static inline bool isWideDecimalTypeByPrecision(const int32_t precision)
|
||||
{
|
||||
return precision > INT64MAXPRECISION
|
||||
&& precision <= INT128MAXPRECISION;
|
||||
|
Reference in New Issue
Block a user