mirror of
https://github.com/MariaDB/server.git
synced 2025-07-11 15:22:09 +03:00
Merge a change from MySQL to fix the failing innodb_bug34300 mysql-test: main.innodb_bug34300 [ fail ] mysqltest: At line 11: query 'SET @@max_allowed_packet=16777216' failed: 1621: SESSION variable 'max_allowed_packet' is read-only. Use SET GLOBAL to assign the value Aborting: main.innodb_bug34300 failed in default mode. The changeset is this: ------------------------------------------------------------ revno: 2709.1.10 committer: Staale Smedseng <staale.smedseng@sun.com> branch nick: b22891-51-bugteam timestamp: Thu 2008-11-20 08:51:48 +0100 message: A fix for Bug#22891 "session level max_allowed_packet can be set but is ignored". This patch makes @@session.max_allowed_packed and @@session.net_buffer_length read-only as suggested in the bug report. The user will have to use SET GLOBAL (and reconnect) to alter the session values of these variables. The error string ER_VARIABLE_IS_READONLY is introduced. Tests are modified accordingly. modified: mysql-test/r/func_compress.result mysql-test/r/max_allowed_packet_basic.result mysql-test/r/max_allowed_packet_func.result mysql-test/r/net_buffer_length_basic.result mysql-test/r/packet.result mysql-test/r/union.result mysql-test/r/variables.result mysql-test/t/func_compress.test mysql-test/t/innodb_bug34300.test mysql-test/t/max_allowed_packet_basic.test mysql-test/t/max_allowed_packet_func.test mysql-test/t/net_buffer_length_basic.test mysql-test/t/packet.test mysql-test/t/union.test mysql-test/t/variables.test sql/set_var.cc sql/set_var.h sql/share/errmsg.txt ------------------------------------------------------------
33 lines
648 B
Plaintext
33 lines
648 B
Plaintext
#
|
|
# Bug#34300 Tinyblob & tinytext fields currupted after export/import and alter in 5.1
|
|
# http://bugs.mysql.com/34300
|
|
#
|
|
|
|
-- source include/have_innodb.inc
|
|
|
|
-- disable_query_log
|
|
-- disable_result_log
|
|
|
|
# set packet size and reconnect
|
|
SET @@global.max_allowed_packet=16777216;
|
|
--connect (newconn, localhost, root,,)
|
|
|
|
DROP TABLE IF EXISTS bug34300;
|
|
CREATE TABLE bug34300 (
|
|
f4 TINYTEXT,
|
|
f6 MEDIUMTEXT,
|
|
f8 TINYBLOB
|
|
) ENGINE=InnoDB;
|
|
|
|
INSERT INTO bug34300 VALUES ('xxx', repeat('a', 8459264), 'zzz');
|
|
|
|
-- enable_result_log
|
|
|
|
SELECT f4, f8 FROM bug34300;
|
|
|
|
ALTER TABLE bug34300 ADD COLUMN (f10 INT);
|
|
|
|
SELECT f4, f8 FROM bug34300;
|
|
|
|
DROP TABLE bug34300;
|