mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merge from 5.5 main
This commit is contained in:
@ -11,4 +11,3 @@
|
||||
##############################################################################
|
||||
binlog_truncate_innodb : BUG#57291 2010-10-20 anitha Originally disabled due to BUG#42643. Product bug fixed, but test changes needed
|
||||
binlog_spurious_ddl_errors : BUG#54195 2010-06-03 alik binlog_spurious_ddl_errors.test fails, thus disabled
|
||||
binlog_row_failure_mixing_engines : BUG#58416 2010-11-23 ramil Fails on win x86 debug_max
|
||||
|
@ -49,6 +49,8 @@ SET @max_allowed_packet_2= @@session.max_allowed_packet;
|
||||
==== clean up ====
|
||||
DROP TABLE t1;
|
||||
SET @@global.max_allowed_packet= 1024;
|
||||
Warnings:
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SET @@global.net_buffer_length= 1024;
|
||||
DROP TABLE t1;
|
||||
RESET SLAVE;
|
||||
|
@ -25,4 +25,10 @@ INSERT INTO t1(c1) VALUES (NULL);
|
||||
UPDATE t1 SET c1= 0;
|
||||
include/diff_tables.inc [master:t1, slave:t1]
|
||||
DROP TABLE t1;
|
||||
include/rpl_reset.inc
|
||||
CREATE TABLE t1 (c1 int(11) NOT NULL, c2 int(11) NOT NULL, c3 int(11) DEFAULT '-1') ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
INSERT INTO t1 VALUES (1,2,NULL);
|
||||
UPDATE t1 SET c1=1, c2=2, c3=-1 WHERE c1=1 AND c2=2 AND ISNULL(c3);
|
||||
include/diff_tables.inc [master:test.t1, slave:test.t1]
|
||||
DROP TABLE t1;
|
||||
include/rpl_end.inc
|
||||
|
@ -1,5 +1,14 @@
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
## coverage purposes - Field_bits
|
||||
## 1 X bit + 2 Null bits + 5 bits => last_null_bit_pos==0
|
||||
include/rpl_reset.inc
|
||||
CREATE TABLE t1 (c1 bigint(20) DEFAULT 0, c2 bit(5)) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
INSERT INTO t1(c1,c2) VALUES (10, b'1');
|
||||
INSERT INTO t1(c1,c2) VALUES (NULL, b'1');
|
||||
UPDATE t1 SET c1= 0;
|
||||
include/diff_tables.inc [master:t1, slave:t1]
|
||||
DROP TABLE t1;
|
||||
## case #1 - last_null_bit_pos==0 in record_compare without X bit
|
||||
include/rpl_reset.inc
|
||||
CREATE TABLE t1 (c1 bigint(20) DEFAULT 0, c2 bigint(20) DEFAULT 0, c3 bigint(20) DEFAULT 0, c4 varchar(1) DEFAULT '', c5 bigint(20) DEFAULT 0, c6 bigint(20) DEFAULT 0, c7 bigint(20) DEFAULT 0, c8 bigint(20) DEFAULT 0) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
@ -25,13 +34,10 @@ INSERT INTO t1(c1) VALUES (NULL);
|
||||
UPDATE t1 SET c1= 0;
|
||||
include/diff_tables.inc [master:t1, slave:t1]
|
||||
DROP TABLE t1;
|
||||
## coverage purposes - Field_bits
|
||||
## 1 X bit + 2 Null bits + 5 bits => last_null_bit_pos==0
|
||||
include/rpl_reset.inc
|
||||
CREATE TABLE t1 (c1 bigint(20) DEFAULT 0, c2 bit(5)) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
INSERT INTO t1(c1,c2) VALUES (10, b'1');
|
||||
INSERT INTO t1(c1,c2) VALUES (NULL, b'1');
|
||||
UPDATE t1 SET c1= 0;
|
||||
include/diff_tables.inc [master:t1, slave:t1]
|
||||
CREATE TABLE t1 (c1 int(11) NOT NULL, c2 int(11) NOT NULL, c3 int(11) DEFAULT '-1') ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
INSERT INTO t1 VALUES (1,2,NULL);
|
||||
UPDATE t1 SET c1=1, c2=2, c3=-1 WHERE c1=1 AND c2=2 AND ISNULL(c3);
|
||||
include/diff_tables.inc [master:test.t1, slave:test.t1]
|
||||
DROP TABLE t1;
|
||||
include/rpl_end.inc
|
||||
|
@ -1 +1 @@
|
||||
--read_buffer_size=12K --max_allowed_packet=8K
|
||||
--read_buffer_size=12K --max_allowed_packet=8K --net-buffer-length=8K
|
||||
|
@ -1 +1 @@
|
||||
--max_allowed_packet=8K
|
||||
--max_allowed_packet=8K --net-buffer-length=8K
|
||||
|
@ -1,12 +1,11 @@
|
||||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/master-slave.inc
|
||||
-- let $engine= MyISAM
|
||||
|
||||
#
|
||||
# BUG#52868 Wrong handling of NULL value during update, replication out of sync
|
||||
#
|
||||
|
||||
-- let $engine= MyISAM
|
||||
-- source extra/rpl_tests/rpl_record_compare.test
|
||||
|
||||
-- echo ## coverage purposes - Field_bits
|
||||
-- echo ## 1 X bit + 2 Null bits + 5 bits => last_null_bit_pos==0
|
||||
@ -28,4 +27,7 @@ UPDATE t1 SET c1= 0;
|
||||
-- connection master
|
||||
DROP TABLE t1;
|
||||
-- sync_slave_with_master
|
||||
|
||||
-- source extra/rpl_tests/rpl_record_compare.test
|
||||
|
||||
--source include/rpl_end.inc
|
||||
|
@ -15,6 +15,7 @@ call mtr.add_suppression("Unsafe statement written to the binary log using state
|
||||
connection slave;
|
||||
call mtr.add_suppression("Master server does not support semi-sync");
|
||||
call mtr.add_suppression("Semi-sync slave .* reply");
|
||||
call mtr.add_suppression("Slave SQL.*Request to stop slave SQL Thread received while applying a group that has non-transactional changes; waiting for completion of the group");
|
||||
enable_query_log;
|
||||
|
||||
connection master;
|
||||
|
@ -7,6 +7,7 @@ SET @@global.max_allowed_packet = DEFAULT;
|
||||
SET @@global.max_allowed_packet = 1000;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_allowed_packet value: '1000'
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SET @@global.max_allowed_packet = DEFAULT;
|
||||
SELECT @@global.max_allowed_packet;
|
||||
@@global.max_allowed_packet
|
||||
@ -25,12 +26,15 @@ SELECT @@global.max_allowed_packet = 1048576;
|
||||
1
|
||||
'#--------------------FN_DYNVARS_070_03-------------------------#'
|
||||
SET @@global.max_allowed_packet = 1024;
|
||||
Warnings:
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SELECT @@global.max_allowed_packet;
|
||||
@@global.max_allowed_packet
|
||||
1024
|
||||
SET @@global.max_allowed_packet = 1025;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_allowed_packet value: '1025'
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SELECT @@global.max_allowed_packet;
|
||||
@@global.max_allowed_packet
|
||||
1024
|
||||
@ -74,18 +78,21 @@ SELECT @@session.max_allowed_packet;
|
||||
SET @@global.max_allowed_packet = 0;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_allowed_packet value: '0'
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SELECT @@global.max_allowed_packet;
|
||||
@@global.max_allowed_packet
|
||||
1024
|
||||
SET @@global.max_allowed_packet = -1024;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_allowed_packet value: '-1024'
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SELECT @@global.max_allowed_packet;
|
||||
@@global.max_allowed_packet
|
||||
1024
|
||||
SET @@global.max_allowed_packet = 1023;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_allowed_packet value: '1023'
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SELECT @@global.max_allowed_packet;
|
||||
@@global.max_allowed_packet
|
||||
1024
|
||||
@ -148,17 +155,21 @@ WHERE VARIABLE_NAME='max_allowed_packet';
|
||||
SET @@global.max_allowed_packet = TRUE;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_allowed_packet value: '1'
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SELECT @@global.max_allowed_packet;
|
||||
@@global.max_allowed_packet
|
||||
1024
|
||||
SET @@global.max_allowed_packet = FALSE;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_allowed_packet value: '0'
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SELECT @@global.max_allowed_packet;
|
||||
@@global.max_allowed_packet
|
||||
1024
|
||||
'#---------------------FN_DYNVARS_070_09----------------------#'
|
||||
SET @@global.max_allowed_packet = 2048;
|
||||
Warnings:
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SELECT @@max_allowed_packet = @@global.max_allowed_packet;
|
||||
@@max_allowed_packet = @@global.max_allowed_packet
|
||||
0
|
||||
|
@ -23,6 +23,8 @@ SELECT @@session.net_buffer_length;
|
||||
'#--------------------FN_DYNVARS_070_02-------------------------#'
|
||||
## Setting value of max_allowed packet and net_buffer_length to 1024 ##
|
||||
SET @@global.max_allowed_packet = 1024;
|
||||
Warnings:
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SET @@global.net_buffer_length = 1024;
|
||||
SELECT @@global.max_allowed_packet;
|
||||
@@global.max_allowed_packet
|
||||
|
Reference in New Issue
Block a user