mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-29678 Valgrind/MSAN uninitialised value errors upon PS with ALTER under ONLY_FULL_GROUP_BY
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.
This commit is contained in:
parent
6bc2e93381
commit
e46217182f
3 changed files with 11 additions and 0 deletions
|
@ -2548,5 +2548,9 @@ Warning 1292 Truncated incorrect DOUBLE value: 'x'
|
||||||
Warning 1292 Truncated incorrect DOUBLE value: 'x'
|
Warning 1292 Truncated incorrect DOUBLE value: 'x'
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
#
|
#
|
||||||
|
# MDEV-29678 Valgrind/MSAN uninitialised value errors upon PS with ALTER under ONLY_FULL_GROUP_BY
|
||||||
|
#
|
||||||
|
SET STATEMENT sql_mode=ONLY_FULL_GROUP_BY FOR EXECUTE IMMEDIATE 'ALTER TABLE mysql.time_zone_transition ORDER BY Time_zone_id, Transition_time';
|
||||||
|
#
|
||||||
# End of 10.3 tests
|
# End of 10.3 tests
|
||||||
#
|
#
|
||||||
|
|
|
@ -1783,6 +1783,12 @@ CREATE TABLE t1 (a BIGINT) AS SELECT 1 AS v3 UNION SELECT FALSE ;
|
||||||
SELECT DISTINCT a IN ( COLLATION (AVG ('x'))) FROM t1 ;
|
SELECT DISTINCT a IN ( COLLATION (AVG ('x'))) FROM t1 ;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-29678 Valgrind/MSAN uninitialised value errors upon PS with ALTER under ONLY_FULL_GROUP_BY
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
SET STATEMENT sql_mode=ONLY_FULL_GROUP_BY FOR EXECUTE IMMEDIATE 'ALTER TABLE mysql.time_zone_transition ORDER BY Time_zone_id, Transition_time';
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # End of 10.3 tests
|
--echo # End of 10.3 tests
|
||||||
--echo #
|
--echo #
|
||||||
|
|
|
@ -2321,6 +2321,7 @@ void st_select_lex::init_query()
|
||||||
item_list.empty();
|
item_list.empty();
|
||||||
min_max_opt_list.empty();
|
min_max_opt_list.empty();
|
||||||
join= 0;
|
join= 0;
|
||||||
|
cur_pos_in_select_list= UNDEF_POS;
|
||||||
having= prep_having= where= prep_where= 0;
|
having= prep_having= where= prep_where= 0;
|
||||||
cond_pushed_into_where= cond_pushed_into_having= 0;
|
cond_pushed_into_where= cond_pushed_into_having= 0;
|
||||||
olap= UNSPECIFIED_OLAP_TYPE;
|
olap= UNSPECIFIED_OLAP_TYPE;
|
||||||
|
|
Loading…
Reference in a new issue