mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.3 into 10.4
This commit is contained in:
@@ -387,5 +387,14 @@ create or replace table t1 (
|
||||
period for system_time (row_start, row_end)
|
||||
) engine=myisam with system versioning;
|
||||
|
||||
--error ER_VERS_FIELD_WRONG_TYPE
|
||||
create table t (
|
||||
a int,
|
||||
row_start datetime(6) generated always as row start,
|
||||
row_end datetime(6) generated always as row end,
|
||||
period for system_time(row_start, row_end)
|
||||
) with system versioning;
|
||||
|
||||
|
||||
drop database test;
|
||||
create database test;
|
||||
|
@@ -466,6 +466,20 @@ insert into t1 values (11),(12);
|
||||
set timestamp=1523466004.169435;
|
||||
delete from t1 where pk in (11, 12);
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-18136 Server crashes in Item_func_dyncol_create::prepare_arguments
|
||||
--echo #
|
||||
create or replace table t1 (pk int) with system versioning
|
||||
partition by system_time interval 7 second (
|
||||
partition ver_p1 history,
|
||||
partition ver_pn current);
|
||||
alter table t1
|
||||
partition by system_time interval column_get(column_create(7,7), 7 as int) second (
|
||||
partition ver_p1 history,
|
||||
partition ver_pn current);
|
||||
--replace_result $default_engine DEFAULT_ENGINE
|
||||
show create table t1;
|
||||
|
||||
--echo # Test cleanup
|
||||
drop database test;
|
||||
create database test;
|
||||
|
@@ -35,6 +35,23 @@ insert into t1 values (1,1);
|
||||
create or replace table t2 (c int);
|
||||
create or replace view v as select t1.* from t1 join t2;
|
||||
replace into v (a, b) select a, b from t1;
|
||||
drop table t1;
|
||||
|
||||
--replace_result $sys_datatype_expl SYS_DATATYPE
|
||||
eval CREATE TABLE t1 (
|
||||
pk INT AUTO_INCREMENT,
|
||||
f INT,
|
||||
row_start $sys_datatype_expl AS ROW START INVISIBLE,
|
||||
row_end $sys_datatype_expl AS ROW END INVISIBLE,
|
||||
PRIMARY KEY(pk),
|
||||
UNIQUE(f),
|
||||
PERIOD FOR SYSTEM_TIME(row_start, row_end)
|
||||
) WITH SYSTEM VERSIONING;
|
||||
INSERT INTO t1 () VALUES (),(),(),(),(),();
|
||||
UPDATE IGNORE t1 SET f = 1;
|
||||
REPLACE t1 SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
||||
drop database test;
|
||||
create database test;
|
||||
|
Reference in New Issue
Block a user