1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-18 13:54:11 +03:00

Merge pull request #1328 from dhall-MariaDB/MCOL-4116

MCOL-4116 add long LONGDOUBLE support to update
This commit is contained in:
Gagan Goel
2020-07-08 15:53:03 -04:00
committed by GitHub

View File

@@ -3121,6 +3121,20 @@ uint8_t WE_DMLCommandProc::processUpdate(messageqcpp::ByteStream& bs,
break; 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(19) << dll;
value = os.str();
break;
}
default: // treat as int64 default: // treat as int64
{ {
ostringstream os; ostringstream os;
@@ -3467,6 +3481,20 @@ uint8_t WE_DMLCommandProc::processUpdate(messageqcpp::ByteStream& bs,
break; 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(19) << dll;
value = os.str();
break;
}
default: // treat as int64 default: // treat as int64
{ {
ostringstream os; ostringstream os;