mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / r / mysql-bug41486.result
blob02777ab587f3aa3f10d7a1fe7a0aa880e83ffb78
1 DROP TABLE IF EXISTS t1;
2 SET @old_max_allowed_packet= @@global.max_allowed_packet;
3 SET @@global.max_allowed_packet = 2 * 1024 * 1024 + 1024;
4 CREATE TABLE t1(data LONGBLOB);
5 INSERT INTO t1 SELECT REPEAT('1', 2*1024*1024);
6 SET @old_general_log = @@global.general_log;
7 SET @@global.general_log = 0;
8 SET @@global.general_log = @old_general_log;
9 SELECT LENGTH(data) FROM t1;
10 LENGTH(data)
11 2097152
12 DROP TABLE t1;
13 SET @@global.max_allowed_packet = @old_max_allowed_packet;