~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/innodb_plugin/t/innodb-autoinc-18274.test

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- source include/have_innodb_plugin.inc
 
2
# embedded server ignores 'delayed', so skip this
 
3
-- source include/not_embedded.inc
 
4
 
 
5
--disable_warnings
 
6
drop table if exists t1;
 
7
--enable_warnings
 
8
 
 
9
#
 
10
# Bug #18274    InnoDB auto_increment field reset on OPTIMIZE TABLE
 
11
SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=1;
 
12
CREATE TABLE t1 (c1 INT PRIMARY KEY AUTO_INCREMENT) ENGINE=InnoDB;
 
13
INSERT INTO t1 VALUES (null);
 
14
SHOW CREATE TABLE t1;
 
15
DELETE FROM t1;
 
16
OPTIMIZE TABLE t1;
 
17
SHOW CREATE TABLE t1;
 
18
INSERT INTO t1 VALUES(null);
 
19
SELECT * FROM t1;
 
20
DROP TABLE t1;