mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-29872 MSAN/Valgrind uninitialised value errors in TABLE::vers_switch_partition
Delayed_insert has its own THD (initialized at mysql_insert()) and hence its own LEX. Delayed_insert initalizes a very few parameters for LEX and 'duplicates' is not in this list. Now we copy this missing parameter from parser LEX (as well as sql_command).
This commit is contained in:
@@ -3463,6 +3463,11 @@ unlock tables;
|
||||
drop table t1, t2;
|
||||
set timestamp= default;
|
||||
#
|
||||
# MDEV-29872 MSAN/Valgrind uninitialised value errors in TABLE::vers_switch_partition
|
||||
#
|
||||
create table t (a int) with system versioning partition by system_time limit 100 partitions 3;
|
||||
drop table t;
|
||||
#
|
||||
# End of 10.9 tests
|
||||
#
|
||||
set global innodb_stats_persistent= @save_persistent;
|
||||
|
@@ -2690,6 +2690,23 @@ unlock tables;
|
||||
drop table t1, t2;
|
||||
set timestamp= default;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-29872 MSAN/Valgrind uninitialised value errors in TABLE::vers_switch_partition
|
||||
--echo #
|
||||
create table t (a int) with system versioning partition by system_time limit 100 partitions 3;
|
||||
let $emb= `select if(version() like '%embedded%', 1, 0)`;
|
||||
if (!$emb)
|
||||
{
|
||||
--disable_result_log
|
||||
--disable_query_log
|
||||
--error ER_DELAYED_NOT_SUPPORTED
|
||||
insert delayed into t () values ();
|
||||
--enable_query_log
|
||||
--enable_result_log
|
||||
}
|
||||
# cleanup
|
||||
drop table t;
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.9 tests
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user