1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-24 14:20:59 +03:00

MCOL-389 Add int/string handling for mod()

Func_mod uses double instead of int for char casting. This patch adds int
handling and uses it where appropriate.
This commit is contained in:
Andrew Hutchings
2016-12-19 15:06:04 +00:00
parent d35609fa91
commit 0df1a5189f
2 changed files with 219 additions and 0 deletions

View File

@@ -323,6 +323,21 @@ public:
FunctionParm& fp,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct);
int64_t getIntVal(rowgroup::Row& row,
FunctionParm& parm,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& operationColType);
uint64_t getUIntVal(rowgroup::Row& row,
FunctionParm& parm,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& operationColType);
std::string getStrVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct);
};