summaryrefslogtreecommitdiff
path: root/storage/xtradb/mysql-test/innodb_xtradb_bug317074.test
diff options
context:
space:
mode:
Diffstat (limited to 'storage/xtradb/mysql-test/innodb_xtradb_bug317074.test')
-rw-r--r--storage/xtradb/mysql-test/innodb_xtradb_bug317074.test38
1 files changed, 38 insertions, 0 deletions
diff --git a/storage/xtradb/mysql-test/innodb_xtradb_bug317074.test b/storage/xtradb/mysql-test/innodb_xtradb_bug317074.test
new file mode 100644
index 00000000000..d5abb7a1670
--- /dev/null
+++ b/storage/xtradb/mysql-test/innodb_xtradb_bug317074.test
@@ -0,0 +1,38 @@
+-- source include/have_innodb.inc
+
+SET GLOBAL innodb_file_format='Barracuda';
+SET GLOBAL innodb_file_per_table=ON;
+
+-- disable_query_log
+-- disable_result_log
+
+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;
+
+delimiter |;
+CREATE PROCEDURE insert_many(p1 int)
+BEGIN
+SET @x = 0;
+SET @y = 0;
+REPEAT
+ insert into test1 set b=1;
+ SET @x = @x + 1;
+ SET @y = @y + 1;
+ IF @y >= 100 THEN
+ commit;
+ SET @y = 0;
+ END IF;
+UNTIL @x >= p1 END REPEAT;
+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;