Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/r/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : /home/usr.opt/mysql57/mysql-test/suite/innodb/r/autoinc_debug.result |
CREATE TABLE t1 (id INT AUTO_INCREMENT PRIMARY KEY)ENGINE=INNODB; # SETTING auto_increment_increment IN CONNECTION DEFAULT SET AUTO_INCREMENT_INCREMENT = 1; INSERT INTO t1 VALUES(NULL); SELECT * FROM t1; id 1 SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 # restart # SETTING auto_increment_increment IN CONNECTION1 SET AUTO_INCREMENT_INCREMENT = 2; SET DEBUG_SYNC= 'ib_after_row_insert SIGNAL opened WAIT_FOR flushed1'; INSERT INTO t1 VALUES(NULL); SET AUTO_INCREMENT_INCREMENT = 2; SET DEBUG_SYNC= 'now WAIT_FOR opened'; SET DEBUG_SYNC= 'ib_after_row_insert_step SIGNAL flushed1 WAIT_FOR opened1'; insert into t1 values(NULL); # CONNECTION default SELECT * FROM t1; id 1 3 SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1 SET DEBUG_SYNC= 'now SIGNAL opened1'; # CONNECTION con1 SELECT * FROM t1; id 1 3 5 SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1 DROP TABLE t1; CREATE TABLE t1(id INT AUTO_INCREMENT PRIMARY KEY)ENGINE=INNODB; # SETTING auto_increment_increment IN CONNECTION DEFAULT SET AUTO_INCREMENT_INCREMENT = 1; INSERT INTO t1 VALUES(NULL); SELECT * FROM t1; id 1 SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 SET DEBUG_SYNC = 'now SIGNAL flushed'; # SETTING auto_increment_increment in connection1 SET AUTO_INCREMENT_INCREMENT = 2; SET DEBUG_SYNC= 'now WAIT_FOR flushed'; SET DEBUG_SYNC= 'ib_after_row_insert SIGNAL opened WAIT_FOR flushed1'; INSERT INTO t1 values(NULL); # CONNECTION DEFAULT SET DEBUG_SYNC= 'now WAIT_FOR opened'; SET DEBUG_SYNC= 'ib_after_row_insert_step SIGNAL flushed1 WAIT_FOR opened1'; INSERT INTO t1 VALUES(NULL); # CONNECTION con1 SELECT * FROM t1; id 1 3 SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 SET DEBUG_SYNC= 'now SIGNAL opened1'; # CONNECTION default SELECT * FROM t1; id 1 3 5 SHOW CREATE TABLE t1; Table Create Table t1 CREATE TABLE `t1` ( `id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1 DROP TABLE t1;