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
Remove variable-length arrays (-Wvla)
This commit is contained in:
@ -40,6 +40,8 @@ using namespace logging;
|
||||
|
||||
#include "collation.h"
|
||||
|
||||
#include "vlarray.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
|
||||
@ -89,7 +91,7 @@ string Func_char::getStrVal(Row& row,
|
||||
CalpontSystemCatalog::ColType& ct)
|
||||
{
|
||||
const int BUF_SIZE = 4 * parm.size();
|
||||
char buf[BUF_SIZE];
|
||||
utils::VLArray<char, 1024> buf(BUF_SIZE);
|
||||
buf[0]= 0;
|
||||
char* pBuf = buf;
|
||||
CHARSET_INFO* cs = ct.getCharset();
|
||||
|
@ -75,7 +75,7 @@ std::string Func_strcmp::getStrVal(rowgroup::Row& row,
|
||||
bool& isNull,
|
||||
execplan::CalpontSystemCatalog::ColType& type)
|
||||
{
|
||||
uint64_t val = getIntVal(row, fp, isNull, type);
|
||||
int64_t val = getIntVal(row, fp, isNull, type);
|
||||
|
||||
if (val > 0)
|
||||
return string("1");
|
||||
|
Reference in New Issue
Block a user