1
0
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:
David Hall
2020-07-06 12:47:10 -05:00
parent d9a8f5fd3c
commit e47eaae033

View File

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