mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge branch '10.5' into 10.6
This commit is contained in:
@@ -221,3 +221,14 @@ ERROR HY000: The target table v1 of the DELETE is not updatable
|
||||
DROP VIEW v1;
|
||||
DROP TABLE t1;
|
||||
# End of 10.4 tests
|
||||
#
|
||||
# MDEV-33470 Unique hash index is broken on DML for system-versioned table
|
||||
#
|
||||
create or replace table t (
|
||||
c int, unique (c) using hash)
|
||||
with system versioning;
|
||||
insert into t values (0);
|
||||
delete from t;
|
||||
delete history from t;
|
||||
drop table t;
|
||||
# End of 10.5 tests
|
||||
|
@@ -49,4 +49,28 @@ x y
|
||||
1 1
|
||||
connection master;
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-31297 Create table as select on system versioned tables do not work consistently on replication
|
||||
#
|
||||
connection master;
|
||||
create table t engine=innodb with system versioning as select 1 as i;
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`i` int(1) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
||||
select * from t;
|
||||
i
|
||||
1
|
||||
connection slave;
|
||||
show create table t;
|
||||
Table Create Table
|
||||
t CREATE TABLE `t` (
|
||||
`i` int(1) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci WITH SYSTEM VERSIONING
|
||||
select * from t;
|
||||
i
|
||||
1
|
||||
connection master;
|
||||
drop table t;
|
||||
include/rpl_end.inc
|
||||
|
@@ -227,4 +227,17 @@ DROP TABLE t1;
|
||||
|
||||
--echo # End of 10.4 tests
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-33470 Unique hash index is broken on DML for system-versioned table
|
||||
--echo #
|
||||
create or replace table t (
|
||||
c int, unique (c) using hash)
|
||||
with system versioning;
|
||||
insert into t values (0);
|
||||
delete from t;
|
||||
delete history from t;
|
||||
drop table t;
|
||||
|
||||
--echo # End of 10.5 tests
|
||||
|
||||
--source suite/versioning/common_finish.inc
|
||||
|
@@ -56,4 +56,19 @@ drop table t1;
|
||||
--remove_files_wildcard $TMP *.txt
|
||||
--remove_files_wildcard $TMP *.sql
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-31297 Create table as select on system versioned tables do not work consistently on replication
|
||||
--echo #
|
||||
--connection master
|
||||
create table t engine=innodb with system versioning as select 1 as i;
|
||||
show create table t;
|
||||
select * from t;
|
||||
|
||||
--sync_slave_with_master
|
||||
show create table t;
|
||||
select * from t;
|
||||
|
||||
--connection master
|
||||
drop table t;
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user