blob: 96dd8d0ea85469418bd17e7ed1f4373c7c1c153a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#
# Bug#34300 Tinyblob & tinytext fields corrupted after export/import and alter in 5.1
#
SET @@global.max_allowed_packet=16777216;
connect newconn, localhost, root,,;
CREATE TABLE bug34300 (
f4 TINYTEXT,
f6 MEDIUMTEXT,
f8 TINYBLOB
) ENGINE=InnoDB;
INSERT INTO bug34300 VALUES ('xxx', repeat('a', 8459264), 'zzz');
SELECT f4, f8 FROM bug34300;
f4 f8
xxx zzz
ALTER TABLE bug34300 ADD COLUMN (f10 INT);
SELECT f4, f8 FROM bug34300;
f4 f8
xxx zzz
# Cleanup
DROP TABLE bug34300;
|