You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4839: Fix clang build (#2100)
* Fix clang build * Extern C returned to plugin_instance Co-authored-by: Leonid Fedorov <l.fedorov@mail.corp.ru>
This commit is contained in:
@ -19,7 +19,6 @@
|
||||
// $Id: we_dmlcommandproc.cpp 3082 2011-09-26 22:00:38Z chao $
|
||||
|
||||
#include <unistd.h>
|
||||
using namespace std;
|
||||
#include "bytestream.h"
|
||||
using namespace messageqcpp;
|
||||
|
||||
@ -54,6 +53,8 @@ using namespace BRM;
|
||||
#include "checks.h"
|
||||
#include "columnwidth.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace WriteEngine
|
||||
{
|
||||
//StopWatch timer;
|
||||
@ -1897,7 +1898,8 @@ uint8_t WE_DMLCommandProc::processBatchInsertBinary(messageqcpp::ByteStream& bs,
|
||||
bs >> val64;
|
||||
memcpy(&valD, &val64, 8);
|
||||
|
||||
if (valD < 0.0 && valD != joblist::DOUBLEEMPTYROW && valD != joblist::DOUBLENULL)
|
||||
if (valD < 0.0 && valD != static_cast<double>(joblist::DOUBLEEMPTYROW)
|
||||
&& valD != static_cast<double>(joblist::DOUBLENULL))
|
||||
{
|
||||
valD = 0.0;
|
||||
pushWarning = true;
|
||||
@ -1915,7 +1917,8 @@ uint8_t WE_DMLCommandProc::processBatchInsertBinary(messageqcpp::ByteStream& bs,
|
||||
bs >> val32;
|
||||
memcpy(&valF, &val32, 4);
|
||||
|
||||
if (valF < 0.0 && valF != joblist::FLOATEMPTYROW && valF != joblist::FLOATNULL)
|
||||
if (valF < 0.0 && valF != static_cast<float>(joblist::FLOATEMPTYROW)
|
||||
&& valF != static_cast<float>(joblist::FLOATNULL))
|
||||
{
|
||||
valF = 0.0;
|
||||
pushWarning = true;
|
||||
@ -2585,7 +2588,7 @@ uint8_t WE_DMLCommandProc::rollbackBatchAutoOn(messageqcpp::ByteStream& bs, std:
|
||||
}
|
||||
catch ( ... )
|
||||
{
|
||||
err = "No such table for oid " + tableOid;
|
||||
err = std::string("No such table for oid ") + std::to_string(tableOid);
|
||||
rc = 1;
|
||||
return rc;
|
||||
}
|
||||
@ -2813,7 +2816,7 @@ uint8_t WE_DMLCommandProc::processUpdate(messageqcpp::ByteStream& bs,
|
||||
}
|
||||
|
||||
int rrid = (int) relativeRID / (BYTE_PER_BLOCK / colWidth);
|
||||
// populate stats.blocksChanged
|
||||
// populate stats.blocksChanged
|
||||
if (rrid > preBlkNums[j])
|
||||
{
|
||||
preBlkNums[j] = rrid ;
|
||||
@ -3847,7 +3850,7 @@ uint8_t WE_DMLCommandProc::processFlushFiles(messageqcpp::ByteStream& bs, std::s
|
||||
}
|
||||
catch ( ... )
|
||||
{
|
||||
err = "Systemcatalog error for tableoid " + tableOid;
|
||||
err = std::string("Systemcatalog error for tableoid ") + std::to_string(tableOid);
|
||||
rc = 1;
|
||||
return rc;
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public:
|
||||
{
|
||||
log(logging::LOG_TYPE_CRITICAL, strerror(errno));
|
||||
}
|
||||
void ParentLogChildMessage(const std::string &str)
|
||||
void ParentLogChildMessage(const std::string &str) override
|
||||
{
|
||||
log(logging::LOG_TYPE_INFO, str);
|
||||
}
|
||||
|
Reference in New Issue
Block a user