Debian Codegraph @

mysql-test/suite/innodb/t/innodb_bug34300.test

raw
1 --echo #
2 --echo # Bug#34300 Tinyblob & tinytext fields corrupted after export/import and alter in 5.1
3 --echo #
4
5 -- source include/have_innodb.inc
6
7 -- disable_query_log
8 call mtr.add_suppression("InnoDB: Warning: a long semaphore wait:");
9 call mtr.add_suppression("The age of the last checkpoint is");
10
11 # set packet size and reconnect
12 let $max_packet=`select @@global.max_allowed_packet`;
13 -- enable_query_log
14
15 SET @@global.max_allowed_packet=16777216;
16 --connect (newconn, localhost, root,,)
17
18 CREATE TABLE bug34300 (
19 f4 TINYTEXT,
20 f6 MEDIUMTEXT,
21 f8 TINYBLOB
22 ) ENGINE=InnoDB;
23
24 INSERT INTO bug34300 VALUES ('xxx', repeat('a', 8459264), 'zzz');
25
26 SELECT f4, f8 FROM bug34300;
27
28 ALTER TABLE bug34300 ADD COLUMN (f10 INT);
29
30 SELECT f4, f8 FROM bug34300;
31
32 --echo # Cleanup
33 DROP TABLE bug34300;
34
35 -- disable_query_log
36 EVAL SET @@global.max_allowed_packet=$max_packet;
37 -- enable_query_log
38