mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -492,3 +492,25 @@ SET @@SYSTEM_VERSIONING_ALTER_HISTORY=ERROR;
|
||||
SELECT count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp;
|
||||
count(*)
|
||||
0
|
||||
# MDEV-18875 Assertion `thd->transaction.stmt.ha_list == __null ||
|
||||
# trans == &thd->transaction.stmt' failed or bogus ER_DUP_ENTRY upon
|
||||
# ALTER TABLE with versioning
|
||||
create or replace table t (x int) engine=innodb;
|
||||
set autocommit= 0;
|
||||
alter table t
|
||||
algorithm=copy,
|
||||
add column row_start bigint unsigned as row start,
|
||||
add column row_end bigint unsigned as row end,
|
||||
add period for system_time(row_start,row_end),
|
||||
with system versioning;
|
||||
set autocommit= 1;
|
||||
# MDEV-18865 Assertion `t->first->versioned_by_id()'
|
||||
# failed in innodb_prepare_commit_versioned
|
||||
create or replace table t (x int) engine=innodb;
|
||||
insert into t values (0);
|
||||
alter table t add `row_start` bigint unsigned as row start,
|
||||
add `row_end` bigint unsigned as row end,
|
||||
add period for system_time(`row_start`,`row_end`),
|
||||
modify x int after row_start,
|
||||
with system versioning;
|
||||
create or replace database test;
|
||||
|
@ -498,3 +498,30 @@ DROP TABLE t;
|
||||
SET @@SYSTEM_VERSIONING_ALTER_HISTORY=ERROR;
|
||||
|
||||
SELECT count(*) from mysql.transaction_registry where begin_timestamp>=commit_timestamp;
|
||||
|
||||
--echo # MDEV-18875 Assertion `thd->transaction.stmt.ha_list == __null ||
|
||||
--echo # trans == &thd->transaction.stmt' failed or bogus ER_DUP_ENTRY upon
|
||||
--echo # ALTER TABLE with versioning
|
||||
create or replace table t (x int) engine=innodb;
|
||||
set autocommit= 0;
|
||||
alter table t
|
||||
algorithm=copy,
|
||||
add column row_start bigint unsigned as row start,
|
||||
add column row_end bigint unsigned as row end,
|
||||
add period for system_time(row_start,row_end),
|
||||
with system versioning;
|
||||
set autocommit= 1;
|
||||
|
||||
--echo # MDEV-18865 Assertion `t->first->versioned_by_id()'
|
||||
--echo # failed in innodb_prepare_commit_versioned
|
||||
|
||||
create or replace table t (x int) engine=innodb;
|
||||
insert into t values (0);
|
||||
alter table t add `row_start` bigint unsigned as row start,
|
||||
add `row_end` bigint unsigned as row end,
|
||||
add period for system_time(`row_start`,`row_end`),
|
||||
modify x int after row_start,
|
||||
with system versioning;
|
||||
|
||||
|
||||
create or replace database test;
|
||||
|
Reference in New Issue
Block a user