summaryrefslogtreecommitdiff
path: root/mysql-test/suite/innodb/t/innodb-autoinc-optimize.test
blob: 8fc34e94076f01f2c78ca1cc55ee74d101ed4bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--source include/have_innodb.inc
# embedded server ignores 'delayed', so skip this
-- source include/not_embedded.inc

--disable_warnings
drop table if exists t1;
--enable_warnings

#
# Bug 34286
#
create table t1(a int not null auto_increment primary key) engine=innodb;
insert into t1 set a = -1;
# NOTE: The database needs to be shutdown and restarted (here) for
# the test to work. It's included for reference only.
optimize table t1;

--echo ==== clean up ====
DROP TABLE t1;