~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/innodb_bug34300.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Bug#34300 Tinyblob & tinytext fields currupted after export/import and alter in 5.1
 
3
# http://bugs.mysql.com/34300
 
4
#
 
5
 
 
6
-- source include/have_innodb.inc
 
7
 
 
8
-- disable_query_log
 
9
-- disable_result_log
 
10
 
 
11
# set packet size and reconnect 
 
12
SET @@global.max_allowed_packet=16777216;
 
13
--connect (newconn, localhost, root,,)
 
14
 
 
15
DROP TABLE IF EXISTS bug34300;
 
16
CREATE TABLE bug34300 (
 
17
  f4 TINYTEXT,
 
18
  f6 MEDIUMTEXT,
 
19
  f8 TINYBLOB
 
20
) ENGINE=InnoDB;
 
21
 
 
22
INSERT INTO bug34300 VALUES ('xxx', repeat('a', 8459264), 'zzz');
 
23
 
 
24
-- enable_query_log
 
25
-- enable_result_log
 
26
 
 
27
SELECT f4, f8 FROM bug34300;
 
28
 
 
29
ALTER TABLE bug34300 ADD COLUMN (f10 INT);
 
30
 
 
31
SELECT f4, f8 FROM bug34300;
 
32
 
 
33
DROP TABLE bug34300;
 
34
 
 
35
disconnect newconn;
 
36
connection default;
 
37
SET @@global.max_allowed_packet=default;