mariadb/mysql-test/suite/percona/percona_xtradb_bug317074.test

49 lines
1.2 KiB
Text
Raw Normal View History

2011-04-25 17:22:25 +02:00
-- source include/have_xtradb.inc
2009-03-25 23:11:11 -07:00
2009-07-24 14:27:34 -07:00
SET @old_innodb_file_format=@@innodb_file_format;
2011-07-14 21:22:41 +02:00
SET @old_innodb_file_format_max=@@innodb_file_format_max;
2009-07-24 14:27:34 -07:00
SET @old_innodb_file_per_table=@@innodb_file_per_table;
2009-03-25 23:11:11 -07:00
SET GLOBAL innodb_file_format='Barracuda';
SET GLOBAL innodb_file_per_table=ON;
-- disable_query_log
-- disable_result_log
2009-03-25 23:11:11 -07:00
DROP TABLE IF EXISTS `test1`;
CREATE TABLE IF NOT EXISTS `test1` (
`a` int primary key auto_increment,
`b` int default 0,
`c` char(100) default 'testtest'
) ENGINE=InnoDB ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8;
set autocommit=0;
2009-03-25 23:11:11 -07:00
delimiter |;
CREATE PROCEDURE insert_many(p1 int)
BEGIN
SET @x = 0;
SET @y = 0;
start transaction;
2009-03-25 23:11:11 -07:00
REPEAT
insert into test1 set b=1;
SET @x = @x + 1;
SET @y = @y + 1;
IF @y >= 1000 THEN
2009-03-25 23:11:11 -07:00
commit;
start transaction;
2009-03-25 23:11:11 -07:00
SET @y = 0;
END IF;
UNTIL @x >= p1 END REPEAT;
commit;
2009-03-25 23:11:11 -07:00
END|
delimiter ;|
call insert_many(100000);
DROP PROCEDURE insert_many;
# The bug is hangup at the following statement
ALTER TABLE test1 ENGINE=MyISAM;
DROP TABLE test1;
2009-07-24 14:27:34 -07:00
SET GLOBAL innodb_file_format=@old_innodb_file_format;
2011-07-14 21:22:41 +02:00
SET GLOBAL innodb_file_format_max=@old_innodb_file_format_max;
2009-07-24 14:27:34 -07:00
SET GLOBAL innodb_file_per_table=@old_innodb_file_per_table;