Skip to content
Permalink
Browse files

Merge 10.3 into 10.4

  • Loading branch information...
kevgs committed Jul 26, 2019
2 parents 4c7a743 + 00a254c commit c0743e4b0056eba0b19a19458c85e52a83cef676
Showing with 22 additions and 0 deletions.
  1. +11 −0 mysql-test/suite/versioning/r/truncate.result
  2. +10 −0 mysql-test/suite/versioning/t/truncate.test
  3. +1 −0 sql/table.cc
@@ -142,5 +142,16 @@ with system versioning;
insert into t1 (f) values ('a'), ('b'), ('c'), ('d'), ('e'), ('f'), ('g'), ('h');
delete from t1;
delete history from t1;
drop table t1;
#
# MDEV-20186 Wrong result or Assertion on INSERT after DELETE HISTORY
#
create or replace table t1 (a int check (a > 0)) with system versioning;
delete history from t1;
insert into t1 values (1);
select * from t1;
a
1
drop table t1;
drop database test;
create database test;
@@ -158,6 +158,16 @@ with system versioning;
insert into t1 (f) values ('a'), ('b'), ('c'), ('d'), ('e'), ('f'), ('g'), ('h');
delete from t1;
delete history from t1;
drop table t1;

--echo #
--echo # MDEV-20186 Wrong result or Assertion on INSERT after DELETE HISTORY
--echo #
create or replace table t1 (a int check (a > 0)) with system versioning;
delete history from t1;
insert into t1 values (1);
select * from t1;
drop table t1;

drop database test;
create database test;
@@ -5064,6 +5064,7 @@ void TABLE::init(THD *thd, TABLE_LIST *tl)
range_rowid_filter_cost_info= NULL;
update_handler= NULL;
check_unique_buf= NULL;
vers_write= s->versioned;
#ifdef HAVE_REPLICATION
/* used in RBR Triggers */
master_had_triggers= 0;

0 comments on commit c0743e4

Please sign in to comment.
You can’t perform that action at this time.