1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Merge pull request #847 from tntnatbry/disable-uservar-funcs

Disable handlers for set_user_var and get_user_var functions in the SELECT clause
This commit is contained in:
Andrew Hutchings
2019-09-02 06:57:33 +01:00
committed by GitHub
2 changed files with 96 additions and 2 deletions

View File

@ -8689,8 +8689,8 @@ int getGroupPlan(gp_walk_info& gwi, SELECT_LEX& select_lex, SCSEP& csep, cal_gro
if ((gwi.subQuery /*|| select_lex.group_list.elements != 0 */ ||
!csep->unionVec().empty() || isUnion) &&
!hasNonSupportItem && (after_size - before_size) == 0 &&
!(parseInfo & AGG_BIT) && !(parseInfo & SUB_BIT) &&
string(ifp->func_name()) != "set_user_var")
!(parseInfo & AGG_BIT) && !(parseInfo & SUB_BIT)
)
{
String val, *str = ifp->val_str(&val);
string valStr;