1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-3757 Test for LIMIT in correlated subqueries

The if() had been changed to something that didn't work. Changed it back
This commit is contained in:
David Hall
2020-04-20 17:20:26 -05:00
parent 6efc9108bb
commit 6087b61e3b

View File

@ -7993,7 +7993,8 @@ int getSelectPlan(gp_walk_info& gwi, SELECT_LEX& select_lex,
}
// We don't currently support limit with correlated subquery
if (gwi.subQuery && !gwi.correlatedTbNameVec.empty() && csep->hasOrderBy())
if (csep->limitNum() != (uint64_t) - 1 &&
gwi.subQuery && !gwi.correlatedTbNameVec.empty())
{
gwi.fatalParseError = true;
gwi.parseErrorText = IDBErrorInfo::instance()->errorMsg(ERR_NON_SUPPORT_LIMIT_SUB);