mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@ -50,5 +50,17 @@ t4 CREATE TABLE `t4` (
|
||||
`row_end` timestamp(6) GENERATED ALWAYS AS ROW END,
|
||||
PERIOD FOR SYSTEM_TIME (`row_start`, `row_end`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
|
||||
set global debug_dbug=@old_dbug;
|
||||
drop table t1, t2, t3, t4;
|
||||
#
|
||||
# MDEV-19525 remove ER_VERS_FIELD_WRONG_TYPE from init_from_binary_frm_image()
|
||||
#
|
||||
create table t1 (x int) with system versioning;
|
||||
set debug_dbug='+d,error_vers_wrong_type';
|
||||
show create table t1;
|
||||
ERROR HY000: Incorrect information in file: './test/t1.frm'
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Warning 4110 `row_start` must be of type TIMESTAMP(6) for system-versioned table `t1`
|
||||
Error 1033 Incorrect information in file: './test/t1.frm'
|
||||
drop table t1;
|
||||
set global debug_dbug=@old_dbug;
|
||||
|
@ -411,6 +411,17 @@ check_row_ts(row_start, row_end)
|
||||
CURRENT ROW
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-22973 Assertion in compare_record upon multi-update involving versioned table via view
|
||||
#
|
||||
create or replace table t1 (a int, primary key (a)) engine=myisam;
|
||||
insert into t1 values (0);
|
||||
create or replace table t2 (pk int, b int, primary key (pk), key(b)) engine=innodb with system versioning;
|
||||
insert into t2 values (1, 0), (2, 0);
|
||||
create or replace view v as select a, b from t1, t2;
|
||||
update v set b= null where a = 0 order by b;
|
||||
drop view v;
|
||||
drop table t1, t2;
|
||||
#
|
||||
# MDEV-24522 Assertion `inited==NONE' fails upon UPDATE on versioned table with unique blob
|
||||
#
|
||||
create table t1 (a int, b int, c text, unique(c), key (b)) engine=myisam with system versioning;
|
||||
@ -426,3 +437,4 @@ update t1 set a = 3 where b <= 9;
|
||||
update t2 set a = 3 where b <= 9;
|
||||
update t1, t2 set t1.a = 3, t2.a = 3 where t1.b <= 10 and t2.b <= 10 and t1.b = t2.b;
|
||||
drop tables t1, t2;
|
||||
# End of 10.4 tests
|
||||
|
@ -1,5 +1,7 @@
|
||||
--source include/have_debug.inc
|
||||
|
||||
--let $datadir=`select @@datadir`
|
||||
|
||||
create table t1 (a int);
|
||||
show create table t1;
|
||||
|
||||
@ -30,6 +32,18 @@ set debug_dbug='+d,sysvers_show';
|
||||
show create table t3;
|
||||
create table t4 (a int);
|
||||
show create table t4;
|
||||
|
||||
set global debug_dbug=@old_dbug;
|
||||
drop table t1, t2, t3, t4;
|
||||
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-19525 remove ER_VERS_FIELD_WRONG_TYPE from init_from_binary_frm_image()
|
||||
--echo #
|
||||
create table t1 (x int) with system versioning;
|
||||
set debug_dbug='+d,error_vers_wrong_type';
|
||||
--replace_result $datadir ./
|
||||
--error ER_NOT_FORM_FILE
|
||||
show create table t1;
|
||||
--replace_result $datadir ./
|
||||
show warnings;
|
||||
drop table t1;
|
||||
set global debug_dbug=@old_dbug;
|
||||
|
@ -336,6 +336,19 @@ select row_start into @r from t1;
|
||||
select check_row_ts(row_start, row_end) from t1 for system_time all where row_start = @r;
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-22973 Assertion in compare_record upon multi-update involving versioned table via view
|
||||
--echo #
|
||||
create or replace table t1 (a int, primary key (a)) engine=myisam;
|
||||
insert into t1 values (0);
|
||||
create or replace table t2 (pk int, b int, primary key (pk), key(b)) engine=innodb with system versioning;
|
||||
insert into t2 values (1, 0), (2, 0);
|
||||
create or replace view v as select a, b from t1, t2;
|
||||
update v set b= null where a = 0 order by b;
|
||||
# cleanup
|
||||
drop view v;
|
||||
drop table t1, t2;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-24522 Assertion `inited==NONE' fails upon UPDATE on versioned table with unique blob
|
||||
--echo #
|
||||
@ -360,4 +373,6 @@ update t1, t2 set t1.a = 3, t2.a = 3 where t1.b <= 10 and t2.b <= 10 and t1.b =
|
||||
# cleanup
|
||||
drop tables t1, t2;
|
||||
|
||||
--echo # End of 10.4 tests
|
||||
|
||||
source suite/versioning/common_finish.inc;
|
||||
|
Reference in New Issue
Block a user