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
MCOL-4800 emit error if IN filter > 65535 entries (#2480)
* MCOL-4800 emit error if IN filter > 65535 entries
This commit is contained in:
@ -3899,6 +3899,16 @@ ReturnedColumn* buildFunctionColumn(Item_func* ifp, gp_walk_info& gwi, bool& non
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
if (ifp->argument_count() > std::numeric_limits<uint16_t>::max())
|
||||
{
|
||||
nonSupport = true;
|
||||
gwi.fatalParseError = true;
|
||||
Message::Args args;
|
||||
string info = funcName + " with argument count > " + std::to_string(std::numeric_limits<uint16_t>::max());
|
||||
args.add(info);
|
||||
gwi.parseErrorText = IDBErrorInfo::instance()->errorMsg(ERR_NON_SUPPORTED_FUNCTION, args);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!selectBetweenIn && (ifp->arguments()[0]->type() == Item::FIELD_ITEM ||
|
||||
(ifp->arguments()[0]->type() == Item::REF_ITEM &&
|
||||
|
Reference in New Issue
Block a user