summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@sun.com>2009-03-19 13:04:20 +0300
committerAlexey Kopytov <Alexey.Kopytov@sun.com>2009-03-19 13:04:20 +0300
commitbd1bbd10c8e9504c2da8f101bfc2690d5ed8acef (patch)
tree77f6f03c712c700bd61d8fbca42f6f7c83d6ad32 /mysql-test/t
parent2b2533955f94397396153b09952d1a54e6098a63 (diff)
parentafcfe81fea26b9f746ee7043c41d8dff52333067 (diff)
downloadmariadb-git-bd1bbd10c8e9504c2da8f101bfc2690d5ed8acef.tar.gz
Automerge.
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/mysql.test14
1 files changed, 10 insertions, 4 deletions
diff --git a/mysql-test/t/mysql.test b/mysql-test/t/mysql.test
index 434db51fc6d..c2b310415fe 100644
--- a/mysql-test/t/mysql.test
+++ b/mysql-test/t/mysql.test
@@ -337,12 +337,16 @@ remove_file $MYSQLTEST_VARDIR/tmp/bug31060.sql;
# mysqldump/import
#
-# Have to change the global variable as the mysql client will use
-# a separate session
+# Have to change the global variable as the session variable is
+# read-only.
set @old_max_allowed_packet = @@global.max_allowed_packet;
# 2 MB blob length + some space for the rest of INSERT query
set @@global.max_allowed_packet = 2 * 1024 * 1024 + 1024;
-set @@max_allowed_packet = @@global.max_allowed_packet;
+
+# Create a new connection since the global max_allowed_packet
+# has no effect for the current connection
+connect (con1, localhost, root,,);
+connection con1;
CREATE TABLE t1(data LONGBLOB);
INSERT INTO t1 SELECT REPEAT('1', 2*1024*1024);
@@ -356,8 +360,10 @@ SELECT LENGTH(data) FROM t1;
remove_file $MYSQLTEST_VARDIR/tmp/bug41486.sql;
DROP TABLE t1;
+connection default;
+disconnect con1;
+
set @@global.max_allowed_packet = @old_max_allowed_packet;
-set @@max_allowed_packet = @@global.max_allowed_packet;
--echo End of 5.0 tests