mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
77cd754229
Part one, non-temporary tables. Rrenaming a column can make destructive changes to the TABLE. This TABLE cannot be used anymore and needs to be reopened even if ALTER TABLE was aborted with an error.
10 lines
413 B
Text
10 lines
413 B
Text
create table t (a int, v int as (a)) engine=innodb;
|
|
alter table t change column a b tinyint, algorithm=inplace;
|
|
ERROR 0A000: ALGORITHM=INPLACE is not supported. Reason: Cannot change column type INPLACE. Try ALGORITHM=COPY
|
|
show create table t;
|
|
Table Create Table
|
|
t CREATE TABLE `t` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`v` int(11) GENERATED ALWAYS AS (`a`) VIRTUAL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
drop table t;
|