create table t1(a int not null primary key, b geometry not null) engine=innodb; ALTER ONLINE TABLE t1 ADD SPATIAL INDEX new(b); ERROR 0A000: LOCK=NONE is not supported. Reason: Do not support online operation on table with GIS index. Try LOCK=SHARED show warnings; Level Code Message Error 1846 LOCK=NONE is not supported. Reason: Do not support online operation on table with GIS index. Try LOCK=SHARED show errors; Level Code Message Error 1846 LOCK=NONE is not supported. Reason: Do not support online operation on table with GIS index. Try LOCK=SHARED ALTER ONLINE TABLE t1 ADD SPATIAL INDEX new(b), LOCK=SHARED; show warnings; Level Code Message show errors; Level Code Message drop table t1; create table t1(a int not null, b geometry not null, d int,spatial key c(b), key d(d)) engine=innodb; show create table t1; Table Create Table t1 CREATE TABLE `t1` ( `a` int(11) NOT NULL, `b` geometry NOT NULL, `d` int(11) DEFAULT NULL, SPATIAL KEY `c` (`b`), KEY `d` (`d`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ALTER ONLINE TABLE t1 ADD PRIMARY KEY(a),DROP INDEX d; ERROR 0A000: LOCK=NONE is not supported. Reason: Do not support online operation on table with GIS index. Try LOCK=SHARED show warnings; Level Code Message Error 1846 LOCK=NONE is not supported. Reason: Do not support online operation on table with GIS index. Try LOCK=SHARED show errors; Level Code Message Error 1846 LOCK=NONE is not supported. Reason: Do not support online operation on table with GIS index. Try LOCK=SHARED ALTER ONLINE TABLE t1 ADD PRIMARY KEY(a),DROP INDEX d, LOCK=SHARED; show warnings; Level Code Message show errors; Level Code Message drop table t1; # # MDEV-14038 ALTER TABLE does not exit on error with InnoDB + bad default function # CREATE TABLE t1 (a INT) ENGINE=InnoDB; ALTER TABLE t1 ADD COLUMN b LINESTRING DEFAULT POINT(1,1); ERROR 22007: Incorrect LINESTRING value: 'POINT' for column 'b' at row 1 DESCRIBE t1; Field Type Null Key Default Extra a int(11) YES NULL DROP TABLE t1;