diff options
author | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-03-19 13:08:15 +0300 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-03-19 13:08:15 +0300 |
commit | 35f9f896024258f11082d89d47bfa65a5a6fbe0e (patch) | |
tree | d6c467e981f29c24cdb29969d55d76d657ff9041 /mysql-test/t | |
parent | 2ea2cc02c3f0c0988ef7a24301b6bc629733bc6f (diff) | |
parent | bd1bbd10c8e9504c2da8f101bfc2690d5ed8acef (diff) | |
download | mariadb-git-35f9f896024258f11082d89d47bfa65a5a6fbe0e.tar.gz |
Automerge.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/mysql.test | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/mysql-test/t/mysql.test b/mysql-test/t/mysql.test index 33184988d47..294ed8201bc 100644 --- a/mysql-test/t/mysql.test +++ b/mysql-test/t/mysql.test @@ -347,12 +347,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); @@ -366,8 +370,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 |