mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / innodb_plugin / t / innodb_bug34300.test
blob6684ba692c803b60596ca22ad99998c92ad687d3
2 # Bug#34300 Tinyblob & tinytext fields currupted after export/import and alter in 5.1
3 # http://bugs.mysql.com/34300
6 -- source include/have_innodb_plugin.inc
8 -- disable_query_log
9 -- disable_result_log
10 call mtr.add_suppression("InnoDB: Warning: a long semaphore wait:");
11 call mtr.add_suppression("the age of the last checkpoint is");
13 # set packet size and reconnect 
14 let $max_packet=`select @@global.max_allowed_packet`;
15 SET @@global.max_allowed_packet=16777216;
16 --connect (newconn, localhost, root,,)
18 DROP TABLE IF EXISTS bug34300;
19 CREATE TABLE bug34300 (
20   f4 TINYTEXT,
21   f6 MEDIUMTEXT,
22   f8 TINYBLOB
23 ) ENGINE=InnoDB;
25 INSERT INTO bug34300 VALUES ('xxx', repeat('a', 8459264), 'zzz');
27 -- enable_result_log
29 SELECT f4, f8 FROM bug34300;
31 ALTER TABLE bug34300 ADD COLUMN (f10 INT);
33 SELECT f4, f8 FROM bug34300;
35 DROP TABLE bug34300;
36 EVAL SET @@global.max_allowed_packet=$max_packet;