mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-14632 Assertion `!((new_col->prtype ^ col->prtype) & ~256U)' failed in row_log_table_apply_convert_mrec
SQL, IB: proper fix is to disable unimplemented Online DDL for system-versioned tables inside InnoDB
This commit is contained in:
32
mysql-test/suite/versioning/r/online.result
Normal file
32
mysql-test/suite/versioning/r/online.result
Normal file
@@ -0,0 +1,32 @@
|
||||
set system_versioning_alter_history=keep;
|
||||
create or replace table t (a int) engine=innodb;
|
||||
alter table t add system versioning, lock=none;
|
||||
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
|
||||
alter table t add system versioning;
|
||||
alter table t add index idx(a), lock=none;
|
||||
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
|
||||
alter table t drop system versioning, lock=none;
|
||||
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
|
||||
set global system_versioning_transaction_registry=on;
|
||||
Warnings:
|
||||
Warning 4144 Transaction-based system versioning is EXPERIMENTAL and is subject to change in future.
|
||||
create or replace table t (a int) engine=innodb;
|
||||
alter table t
|
||||
add s bigint unsigned as row start,
|
||||
add e bigint unsigned as row end,
|
||||
add period for system_time(s, e),
|
||||
add system versioning,
|
||||
lock=none;
|
||||
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
|
||||
alter table t
|
||||
add s bigint unsigned as row start,
|
||||
add e bigint unsigned as row end,
|
||||
add period for system_time(s, e),
|
||||
add system versioning;
|
||||
alter table t add index idx(a), lock=none;
|
||||
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
|
||||
alter table t drop column s, drop column e;
|
||||
alter table t drop system versioning, lock=none;
|
||||
ERROR 0A000: LOCK=NONE is not supported for this operation. Try LOCK=SHARED
|
||||
set global system_versioning_transaction_registry=off;
|
||||
drop table t;
|
Reference in New Issue
Block a user