diff --git a/writeengine/server/we_dmlcommandproc.cpp b/writeengine/server/we_dmlcommandproc.cpp index 191dd56ea..928544739 100644 --- a/writeengine/server/we_dmlcommandproc.cpp +++ b/writeengine/server/we_dmlcommandproc.cpp @@ -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::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::infinity()) + continue; + + ostringstream os; + //@Bug 3350 fix the precision. + os << setprecision(16) << dll; + value = os.str(); + break; + } + default: // treat as int64 { ostringstream os;