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;
13 SET @@global.max_allowed_packet = @old_max_allowed_packet;