Commit 7bdc024f authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-29830 Assertion `table->versioned()' in THD::vers_insert_history_fast

remove assert temporarily, the proper fix comes after MDEV-29833
parent a6f96946
......@@ -21,5 +21,15 @@ a s e
8 2010-11-11 11:11:11.000000 2020-04-04 00:00:00.000000
drop table t1;
#
# MDEV-29830 Assertion `table->versioned()' in THD::vers_insert_history_fast
#
create table t1 (a int) with system versioning;
insert into t1 values (1),(2);
create table t2 (a timestamp);
insert into t2 (a) values (now()),(now());
select * from t2 where a in (select row_start from t1);
a
drop table t1, t2;
#
# End of 10.11 tests
#
......@@ -16,6 +16,16 @@ set timestamp=default;
select * from t1 for system_time all;
drop table t1;
--echo #
--echo # MDEV-29830 Assertion `table->versioned()' in THD::vers_insert_history_fast
--echo #
create table t1 (a int) with system versioning;
insert into t1 values (1),(2);
create table t2 (a timestamp);
insert into t2 (a) values (now()),(now());
select * from t2 where a in (select row_start from t1);
drop table t1, t2;
--echo #
--echo # End of 10.11 tests
--echo #
......@@ -5577,7 +5577,6 @@ class THD: public THD_count, /* this must be first */
bool vers_insert_history_fast(const TABLE *table)
{
DBUG_ASSERT(table->versioned());
return table->versioned(VERS_TIMESTAMP) &&
(variables.option_bits & OPTION_INSERT_HISTORY) &&
lex->duplicates == DUP_ERROR;
......
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