You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4174 Review/refactor frontend/connector code
This commit is contained in:
committed by
Roman Nozdrin
parent
68244ab957
commit
129d5b5a0f
@ -44,7 +44,6 @@ using namespace config;
|
||||
#include "dataconvert.h"
|
||||
using namespace dataconvert;
|
||||
|
||||
#include "widedecimalutils.h"
|
||||
#include "mcs_decimal.h"
|
||||
|
||||
#include "liboamcpp.h"
|
||||
@ -192,12 +191,12 @@ const string fmt(T v)
|
||||
}
|
||||
else
|
||||
{
|
||||
char buf[utils::MAXLENGTH16BYTES];
|
||||
char buf[datatypes::Decimal::MAXLENGTH16BYTES];
|
||||
|
||||
int128_t tmp = v;
|
||||
|
||||
dataconvert::DataConvert::decimalToString(
|
||||
&tmp, 0, buf, sizeof(buf), execplan::CalpontSystemCatalog::DECIMAL);
|
||||
&tmp, 0, buf, (uint8_t) sizeof(buf), datatypes::SystemCatalog::DECIMAL);
|
||||
|
||||
oss << buf;
|
||||
}
|
||||
@ -219,12 +218,12 @@ const string fmt(T v)
|
||||
}
|
||||
else
|
||||
{
|
||||
char buf[utils::MAXLENGTH16BYTES];
|
||||
char buf[datatypes::Decimal::MAXLENGTH16BYTES];
|
||||
|
||||
int128_t tmp = static_cast<uint128_t>(v);
|
||||
|
||||
dataconvert::DataConvert::decimalToString(
|
||||
&tmp, 0, buf, sizeof(buf), execplan::CalpontSystemCatalog::DECIMAL);
|
||||
&tmp, 0, buf, (uint8_t) sizeof(buf), datatypes::SystemCatalog::DECIMAL);
|
||||
|
||||
oss << buf;
|
||||
}
|
||||
@ -248,12 +247,12 @@ const string fmt(T v)
|
||||
}
|
||||
else
|
||||
{
|
||||
char buf[utils::MAXLENGTH16BYTES];
|
||||
char buf[datatypes::Decimal::MAXLENGTH16BYTES];
|
||||
|
||||
int128_t tmp = v;
|
||||
|
||||
dataconvert::DataConvert::decimalToString(
|
||||
&tmp, 0, buf, sizeof(buf), execplan::CalpontSystemCatalog::DECIMAL);
|
||||
&tmp, 0, buf, (uint8_t) sizeof(buf), datatypes::SystemCatalog::DECIMAL);
|
||||
|
||||
oss << buf;
|
||||
}
|
||||
|
Reference in New Issue
Block a user