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-4116 add long LONGDOUBLE support to update
This commit is contained in:
@ -3121,6 +3121,20 @@ uint8_t WE_DMLCommandProc::processUpdate(messageqcpp::ByteStream& bs,
|
||||
break;
|
||||
}
|
||||
|
||||
case CalpontSystemCatalog::LONGDOUBLE:
|
||||
{
|
||||
double dll = row.getDoubleField(fetchColPos);
|
||||
|
||||
if (dll == std::numeric_limits<double>::infinity())
|
||||
continue;
|
||||
|
||||
ostringstream os;
|
||||
//@Bug 3350 fix the precision.
|
||||
os << setprecision(16) << dll;
|
||||
value = os.str();
|
||||
break;
|
||||
}
|
||||
|
||||
default: // treat as int64
|
||||
{
|
||||
ostringstream os;
|
||||
@ -3467,6 +3481,20 @@ uint8_t WE_DMLCommandProc::processUpdate(messageqcpp::ByteStream& bs,
|
||||
break;
|
||||
}
|
||||
|
||||
case CalpontSystemCatalog::LONGDOUBLE:
|
||||
{
|
||||
long double dll = row.getLongDoubleField(fetchColPos);
|
||||
|
||||
if (dll == std::numeric_limits<long double>::infinity())
|
||||
continue;
|
||||
|
||||
ostringstream os;
|
||||
//@Bug 3350 fix the precision.
|
||||
os << setprecision(16) << dll;
|
||||
value = os.str();
|
||||
break;
|
||||
}
|
||||
|
||||
default: // treat as int64
|
||||
{
|
||||
ostringstream os;
|
||||
|
Reference in New Issue
Block a user