summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/binlog_checksum_basic.test
blob: fb3d8e33fa1fc73493bdf1f169aff6fca66ad8ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--source include/not_embedded.inc

# suite/rpl/t/rpl_checksum.test contains similar testing of 
# all checksum related system variables.

set @save_binlog_checksum= @@global.binlog_checksum;
set @@global.binlog_checksum = default;

select @@global.binlog_checksum as 'must be NONE by default';
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.binlog_checksum as 'no session var';


# testing lack of side-effects in non-effective update of binlog_checksum:
set @@global.binlog_checksum = CRC32;
set @@global.binlog_checksum = CRC32; 

set @@global.master_verify_checksum = 0;
set @@global.master_verify_checksum = default;

--error ER_WRONG_VALUE_FOR_VAR
set @@global.binlog_checksum = ADLER32;

# cleanup
set @@global.binlog_checksum = @save_binlog_checksum;