-
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 ha_innobase::check_if_supported_inplace_alter(): enabled non-rebuilding operations for trx_id-based system-versioning tables Also added better error message for not implemented operations.
- Loading branch information
Showing
4 changed files
with
41 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,38 @@ | ||
set system_versioning_alter_history=keep; | ||
create or replace table t (a int) engine=innodb; | ||
create or replace table t (a int, b 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; | ||
ERROR 0A000: LOCK=NONE is not supported. Reason: Not implemented for system-versioned tables. Try LOCK=SHARED | ||
alter table t add system versioning, lock=shared; | ||
alter table t drop column b, lock=none; | ||
ERROR 0A000: LOCK=NONE is not supported. Reason: Not implemented for system-versioned tables. Try LOCK=SHARED | ||
alter table t drop column b, algorithm=inplace; | ||
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Not implemented for system-versioned tables. Try ALGORITHM=COPY | ||
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 | ||
ERROR 0A000: LOCK=NONE is not supported. Reason: Not implemented for system-versioned tables. Try LOCK=SHARED | ||
alter table t drop system versioning, algorithm=inplace; | ||
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Not implemented for system-versioned tables. Try ALGORITHM=COPY | ||
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; | ||
create or replace table t (a int, b 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 | ||
ERROR 0A000: LOCK=NONE is not supported. Reason: Not implemented for system-versioned tables. 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 drop column b, lock=none; | ||
ERROR 0A000: LOCK=NONE is not supported. Reason: Not implemented for system-versioned tables. Try LOCK=SHARED | ||
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 | ||
ERROR 0A000: LOCK=NONE is not supported. Reason: Not implemented for system-versioned tables. 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
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