mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
3f53515425
close table->update_handler in close_thread_tables(). it's not enough to do it in sql_update.cc only, because sql_insert.cc can also do updates (REPLACE) and even sql_delete.cc can (DELETE ... FOR PORTION OF)
38 lines
1.4 KiB
Text
38 lines
1.4 KiB
Text
--source include/have_innodb.inc
|
|
|
|
#
|
|
# MDEV-18707 Server crash in my_hash_sort_bin, ASAN heap-use-after-free in Field::is_null, server hang, corrupted double-linked list
|
|
#
|
|
create table t1 (a int, b int, c int, d int, e int);
|
|
insert into t1 () values
|
|
(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),
|
|
(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),
|
|
(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),
|
|
(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),(),
|
|
(),(),(),();
|
|
select * into outfile 'load.data' from t1;
|
|
create temporary table tmp (a varchar(1024), b int, c int, d int, e linestring, unique (e));
|
|
load data infile 'load.data' into table tmp;
|
|
delete from tmp;
|
|
drop table t1;
|
|
--let $datadir= `SELECT @@datadir`
|
|
--remove_file $datadir/test/load.data
|
|
|
|
#
|
|
# MDEV-18712 InnoDB indexes are inconsistent with what defined in .frm for table after rebuilding table with index on blob
|
|
#
|
|
create table t1 (b blob) engine=innodb;
|
|
alter table t1 add unique (b);
|
|
alter table t1 force;
|
|
show create table t1;
|
|
drop table t1;
|
|
|
|
#
|
|
# MDEV-18713 Assertion `strcmp(share->unique_file_name,filename) || share->last_version' failed in test_if_reopen upon REPLACE into table with key on blob
|
|
#
|
|
create table t1 (pk int, b blob, primary key(pk), unique(b)) engine=myisam;
|
|
insert into t1 values (1,'foo');
|
|
replace into t1 (pk) values (1);
|
|
alter table t1 force;
|
|
replace into t1 (pk) values (1);
|
|
drop table t1;
|