1
0
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:
Roman Nozdrin
2020-11-09 07:53:42 +00:00
parent 15b1bfa709
commit f24fd41310
2 changed files with 3 additions and 3 deletions

View File

@@ -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 &&

View File

@@ -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;