summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Black <daniel@mariadb.org>2022-10-12 10:42:54 +1100
committerDaniel Black <daniel@mariadb.org>2022-10-12 10:42:57 +1100
commit2c8d6be7e137ce5f881d28176e692c1214d526d7 (patch)
tree58277951606c46605ac46a20cd53d385848b503b
parent15edd69ddf649ebf7ecab3fa72bc5dea263c0154 (diff)
downloadmariadb-git-bb-10.6-danielblack-MDEV-29678-uninit.tar.gz
MDEV-29678 Valgrind/MSAN uninitialised value errors upon PS with ALTER under ONLY_FULL_GROUP_BYbb-10.6-danielblack-MDEV-29678-uninit
st_select_lex::init_query is called in the exectuion of EXECUTE IMMEDIATE 'alter table ...'. so reset the initialization at the same point we set join= 0.
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index d270c39931e..76c40a3e32d 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -2951,6 +2951,7 @@ void st_select_lex::init_query()
min_max_opt_list.empty();
limit_params.clear();
join= 0;
+ cur_pos_in_select_list= UNDEF_POS;
having= prep_having= where= prep_where= 0;
cond_pushed_into_where= cond_pushed_into_having= 0;
attach_to_conds.empty();