mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
MDEV-29830 Assertion `table->versioned()' in THD::vers_insert_history_fast
remove assert temporarily, the proper fix comes after MDEV-29833
This commit is contained in:
parent
a6f9694650
commit
7bdc024fb0
3 changed files with 20 additions and 1 deletions
|
@ -21,5 +21,15 @@ a s e
|
||||||
8 2010-11-11 11:11:11.000000 2020-04-04 00:00:00.000000
|
8 2010-11-11 11:11:11.000000 2020-04-04 00:00:00.000000
|
||||||
drop table t1;
|
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
|
# End of 10.11 tests
|
||||||
#
|
#
|
||||||
|
|
|
@ -16,6 +16,16 @@ set timestamp=default;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all;
|
||||||
drop table t1;
|
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 #
|
||||||
--echo # End of 10.11 tests
|
--echo # End of 10.11 tests
|
||||||
--echo #
|
--echo #
|
||||||
|
|
|
@ -5577,7 +5577,6 @@ public:
|
||||||
|
|
||||||
bool vers_insert_history_fast(const TABLE *table)
|
bool vers_insert_history_fast(const TABLE *table)
|
||||||
{
|
{
|
||||||
DBUG_ASSERT(table->versioned());
|
|
||||||
return table->versioned(VERS_TIMESTAMP) &&
|
return table->versioned(VERS_TIMESTAMP) &&
|
||||||
(variables.option_bits & OPTION_INSERT_HISTORY) &&
|
(variables.option_bits & OPTION_INSERT_HISTORY) &&
|
||||||
lex->duplicates == DUP_ERROR;
|
lex->duplicates == DUP_ERROR;
|
||||||
|
|
Loading…
Add table
Reference in a new issue