mirror of
https://github.com/MariaDB/server.git
synced 2025-08-29 00:08:14 +03:00
Changing Field::set_default from void to int. It now uses the same return value notation with Field::store*() and Item::save_in_field().
32 lines
917 B
Plaintext
32 lines
917 B
Plaintext
--source include/have_innodb.inc
|
|
|
|
create table t1(a int not null primary key, b geometry not null) engine=innodb;
|
|
--error 1846
|
|
ALTER ONLINE TABLE t1 ADD SPATIAL INDEX new(b);
|
|
show warnings;
|
|
show errors;
|
|
ALTER ONLINE TABLE t1 ADD SPATIAL INDEX new(b), LOCK=SHARED;
|
|
show warnings;
|
|
show errors;
|
|
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;
|
|
--error 1846
|
|
ALTER ONLINE TABLE t1 ADD PRIMARY KEY(a),DROP INDEX d;
|
|
show warnings;
|
|
show errors;
|
|
ALTER ONLINE TABLE t1 ADD PRIMARY KEY(a),DROP INDEX d, LOCK=SHARED;
|
|
show warnings;
|
|
show errors;
|
|
drop table t1;
|
|
|
|
--echo #
|
|
--echo # MDEV-14038 ALTER TABLE does not exit on error with InnoDB + bad default function
|
|
--echo #
|
|
|
|
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
|
--error ER_TRUNCATED_WRONG_VALUE_FOR_FIELD
|
|
ALTER TABLE t1 ADD COLUMN b LINESTRING DEFAULT POINT(1,1);
|
|
DESCRIBE t1;
|
|
DROP TABLE t1;
|