1-- source include/have_innodb.inc
2
3--echo #
4--echo # Bug#46760: Fast ALTER TABLE no longer works for InnoDB
5--echo #
6
7CREATE TABLE t1 (a INT) ENGINE=InnoDB;
8INSERT INTO t1 VALUES (1);
9
10--echo # By using --enable_info and verifying that number of affected
11--echo # rows is 0 we check that this ALTER TABLE is really carried
12--echo # out as "fast/online" operation, i.e. without full-blown data
13--echo # copying.
14--echo #
15--echo # I.e. info for the below statement should normally look like:
16--echo #
17--echo # affected rows: 0
18--echo # info: Records: 0  Duplicates: 0  Warnings: 0
19
20--enable_info
21ALTER TABLE t1 ALTER COLUMN a SET DEFAULT 10;
22--disable_info
23SHOW CREATE TABLE t1;
24
25DROP TABLE t1;
26
27--echo #
28--echo # MySQL Bug#39200: optimize table does not recognize
29--echo # ROW_FORMAT=COMPRESSED
30--echo #
31
32CREATE TABLE t1 (a INT) ROW_FORMAT=compressed, ENGINE=MyISAM;
33SHOW CREATE TABLE t1;
34OPTIMIZE TABLE t1;
35SHOW CREATE TABLE t1;
36DROP TABLE t1;
37
38--echo End of 5.1 tests
39