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:
@@ -543,3 +543,37 @@ alter table t1 drop system versioning, add f2 int with system versioning;
|
||||
|
||||
drop table t1;
|
||||
--source suite/versioning/common_finish.inc
|
||||
--echo # MDEV-16490 It's possible to make a system versioned table without any versioning field
|
||||
|
||||
set @@system_versioning_alter_history=keep;
|
||||
create or replace table t (a int) with system versioning engine=innodb;
|
||||
--error ER_VERS_TABLE_MUST_HAVE_COLUMNS
|
||||
alter table t change column a a int without system versioning;
|
||||
|
||||
alter table t
|
||||
change column a a int without system versioning,
|
||||
add column b int with system versioning;
|
||||
show create table t;
|
||||
|
||||
alter table t
|
||||
change column a new_a int,
|
||||
drop system versioning;
|
||||
show create table t;
|
||||
|
||||
alter table t add system versioning;
|
||||
alter table t change column new_a a int without system versioning;
|
||||
show create table t;
|
||||
|
||||
--error ER_VERS_TABLE_MUST_HAVE_COLUMNS
|
||||
alter table t
|
||||
add column c int,
|
||||
change column c c int without system versioning,
|
||||
change column b b int without system versioning;
|
||||
|
||||
alter table t
|
||||
add column c int without system versioning,
|
||||
change column c c int,
|
||||
change column b b int without system versioning;
|
||||
|
||||
drop database test;
|
||||
create database test;
|
||||
|
@@ -396,3 +396,14 @@ create table t (
|
||||
) with system versioning;
|
||||
|
||||
--source suite/versioning/common_finish.inc
|
||||
--echo # MDEV-16490 It's possible to make a system versioned table without any versioning field
|
||||
create or replace table t1 (x int without system versioning)
|
||||
with system versioning
|
||||
select 1 as y;
|
||||
--error ER_VERS_TABLE_MUST_HAVE_COLUMNS
|
||||
create or replace table t1 (x int without system versioning)
|
||||
with system versioning
|
||||
select 1 as x;
|
||||
|
||||
drop database test;
|
||||
create database test;
|
||||
|
Reference in New Issue
Block a user