-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-14632 Assertion `!((new_col->prtype ^ col->prtype) & ~256U)' fai…
…led in row_log_table_apply_convert_mrec SQL, IB: proper fix is to disable unimplemented Online DDL for system-versioned tables inside InnoDB
- Loading branch information
Showing
10 changed files
with
118 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--source include/have_innodb.inc | ||
|
||
set system_versioning_alter_history=keep; | ||
|
||
create or replace table t (a int) engine=innodb; | ||
|
||
--error ER_ALTER_OPERATION_NOT_SUPPORTED | ||
alter table t add system versioning, lock=none; | ||
alter table t add system versioning; | ||
--error ER_ALTER_OPERATION_NOT_SUPPORTED | ||
alter table t add index idx(a), lock=none; | ||
--error ER_ALTER_OPERATION_NOT_SUPPORTED | ||
alter table t drop system versioning, lock=none; | ||
|
||
|
||
set global system_versioning_transaction_registry=on; | ||
create or replace table t (a int) engine=innodb; | ||
|
||
--error ER_ALTER_OPERATION_NOT_SUPPORTED | ||
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; | ||
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; | ||
--error ER_ALTER_OPERATION_NOT_SUPPORTED | ||
alter table t add index idx(a), lock=none; | ||
alter table t drop column s, drop column e; | ||
--error ER_ALTER_OPERATION_NOT_SUPPORTED | ||
alter table t drop system versioning, lock=none; | ||
|
||
set global system_versioning_transaction_registry=off; | ||
|
||
drop table t; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters