1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-641 Add support for functions (Part 1).

This commit is contained in:
Gagan Goel
2020-04-19 23:27:43 -04:00
committed by Roman Nozdrin
parent 554c6da8e8
commit cfe35b5c7f
28 changed files with 2102 additions and 462 deletions

View File

@ -470,7 +470,8 @@ inline int power ( int16_t a )
return b;
}
inline void decimalPlaceDec(int64_t& d, int64_t& p, int8_t& s)
template <typename T>
inline void decimalPlaceDec(int64_t& d, T& p, int8_t& s)
{
// find new scale if D < s
if (d < s)