1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-14769 Temporary table can be altered into system versioning + system_versioning_alter_history has no effect

This commit is contained in:
Eugene Kosov
2017-12-29 16:28:13 +03:00
committed by Aleksey Midenkov
parent 7069071d7d
commit 157150cfcf
6 changed files with 17 additions and 7 deletions

View File

@ -429,9 +429,11 @@ alter table t1 engine=myisam;
# MDEV-14692 crash in MDL_context::upgrade_shared_lock()
create or replace temporary table t (a int);
alter table t change column if exists b c bigint unsigned generated always as row start;
ERROR HY000: This is not yet supported for generated columns
ERROR HY000: System versioning prohibited for TEMPORARY tables
alter table t change column if exists b c bigint unsigned generated always as row end;
ERROR HY000: This is not yet supported for generated columns
ERROR HY000: System versioning prohibited for TEMPORARY tables
alter table t add system versioning;
ERROR HY000: System versioning prohibited for TEMPORARY tables
drop table t;
# MDEV-14744 trx_id-based and transaction-based mixup in assertion
create or replace table t (c text) engine=innodb with system versioning;

View File

@ -348,7 +348,7 @@ create or replace table t (sys_trx_end int);
alter table t with system versioning;
ERROR 42S21: Duplicate column name 'sys_trx_end'
create or replace temporary table t (x28 int) with system versioning;
ERROR HY000: WITH SYSTEM VERSIONING prohibited for TEMPORARY tables
ERROR HY000: System versioning prohibited for TEMPORARY tables
create or replace table t1 (
x29 int unsigned,
Sys_start0 timestamp(6) as row start invisible,

View File

@ -364,10 +364,12 @@ alter table t1 engine=myisam;
--echo # MDEV-14692 crash in MDL_context::upgrade_shared_lock()
create or replace temporary table t (a int);
--error ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN
--error ER_VERS_TEMPORARY
alter table t change column if exists b c bigint unsigned generated always as row start;
--error ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN
--error ER_VERS_TEMPORARY
alter table t change column if exists b c bigint unsigned generated always as row end;
--error ER_VERS_TEMPORARY
alter table t add system versioning;
drop table t;
--echo # MDEV-14744 trx_id-based and transaction-based mixup in assertion