Commit 5dddbafa authored by Eugene Kosov's avatar Eugene Kosov Committed by GitHub

MDEV-14821 Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())`...

MDEV-14821 Assertion `!is_set() || (m_status == DA_OK_BULK && is_bulk_op())` failed in Diagnostics_area::set_ok_status
parent 912769b7
......@@ -391,6 +391,22 @@ create or replace table t4 (x int) engine=myisam;
create or replace trigger tr after insert on t4 for each row insert into t2
( select x from t3 ) union ( select x from t1 );
insert into t4 values (1);
# MDEV-14821 Assertion failure
create or replace table t1 (x int) with system versioning;
insert into t1 values (0), (1);
update t1 set x= x + 1;
alter table t1 partition by system_time limit 1 (
partition p1 history,
partition p2 history,
partition pn current);
Warnings:
Note 4115 Versioned table `test`.`t1`: switching from partition `p1` to `p2`
delete from t1 where x = 1;
Warnings:
Warning 4113 Versioned table `test`.`t1`: partition `p2` is full, add more HISTORY partitions
delete from t1 where x = 2;
Warnings:
Warning 4113 Versioned table `test`.`t1`: partition `p2` is full, add more HISTORY partitions
# Test cleanup
drop database test;
create database test;
......@@ -340,6 +340,17 @@ create or replace trigger tr after insert on t4 for each row insert into t2
( select x from t3 ) union ( select x from t1 );
insert into t4 values (1);
--echo # MDEV-14821 Assertion failure
create or replace table t1 (x int) with system versioning;
insert into t1 values (0), (1);
update t1 set x= x + 1;
alter table t1 partition by system_time limit 1 (
partition p1 history,
partition p2 history,
partition pn current);
delete from t1 where x = 1;
delete from t1 where x = 2;
--echo # Test cleanup
drop database test;
create database test;
......@@ -562,7 +562,10 @@ class partition_info : public Sql_alloc
Field *f= part_field_array[i];
bitmap_set_bit(f->table->write_set, f->field_index);
}
MEM_ROOT *old_root= thd->mem_root;
thd->mem_root= &table->mem_root;
result= check_range_constants(thd, false);
thd->mem_root= old_root;
vers_info->stat_serial= table->s->stat_serial;
mysql_rwlock_unlock(&table->s->LOCK_stat_serial);
return result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment