Commit f7e03d44 authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-4774: Fix test case

parent 4e82aaab
select @@max_binlog_stmt_cache_size; #
@@max_binlog_stmt_cache_size # MDEV-4774: Strangeness with max_binlog_stmt_cache_size Settings
18446744073709547520 #
set global max_binlog_stmt_cache_size= 18446744073709547520; CALL mtr.add_suppression("unsigned value 18446744073709547520 adjusted to 4294963200");
select @@max_binlog_stmt_cache_size; SELECT @@global.max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size @@global.max_binlog_stmt_cache_size
18446744073709547520 MAX_BINLOG_STMT_CACHE_SIZE
set global max_binlog_stmt_cache_size= 18446744073709547519; SET @cache_size= @@max_binlog_stmt_cache_size;
Warnings: SET @@global.max_binlog_stmt_cache_size= @cache_size+1;
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '18446744073709547519' SELECT @@global.max_binlog_stmt_cache_size;
select @@max_binlog_stmt_cache_size; @@global.max_binlog_stmt_cache_size
@@max_binlog_stmt_cache_size MAX_BINLOG_STMT_CACHE_SIZE
18446744073709543424 SET @@global.max_binlog_stmt_cache_size = @cache_size+4095;
set global max_binlog_stmt_cache_size= 18446744073709551615; SELECT @@global.max_binlog_stmt_cache_size;
Warnings: @@global.max_binlog_stmt_cache_size
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '18446744073709551615' MAX_BINLOG_STMT_CACHE_SIZE
select @@max_binlog_stmt_cache_size; SET @@global.max_binlog_stmt_cache_size= @cache_size-1;
@@max_binlog_stmt_cache_size SELECT @@global.max_binlog_stmt_cache_size = @cache_size-4096;
18446744073709547520 @@global.max_binlog_stmt_cache_size = @cache_size-4096
set global max_binlog_stmt_cache_size= 18446744073709551614; 1
Warnings: SET @@global.max_binlog_stmt_cache_size= @cache_size;
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '18446744073709551614' # End of test
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709551616;
ERROR 42000: Incorrect argument type to variable 'max_binlog_stmt_cache_size'
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709547520;
source include/have_log_bin.inc;
select @@max_binlog_stmt_cache_size;
--let $cache_size=`select @@max_binlog_stmt_cache_size;` --echo #
--echo # MDEV-4774: Strangeness with max_binlog_stmt_cache_size Settings
--echo #
set global max_binlog_stmt_cache_size= 18446744073709547520; CALL mtr.add_suppression("unsigned value 18446744073709547520 adjusted to 4294963200");
select @@max_binlog_stmt_cache_size;
set global max_binlog_stmt_cache_size= 18446744073709547519; --replace_result 18446744073709547520 MAX_BINLOG_STMT_CACHE_SIZE 4294963200 MAX_BINLOG_STMT_CACHE_SIZE
select @@max_binlog_stmt_cache_size; SELECT @@global.max_binlog_stmt_cache_size;
set global max_binlog_stmt_cache_size= 18446744073709551615; # Save the initial value of @@global.max_binlog_stmt_cache_size.
select @@max_binlog_stmt_cache_size; --replace_result 18446744073709547520 MAX_BINLOG_STMT_CACHE_SIZE 4294963200 MAX_BINLOG_STMT_CACHE_SIZE
SET @cache_size= @@max_binlog_stmt_cache_size;
set global max_binlog_stmt_cache_size= 18446744073709551614; --disable_warnings
select @@max_binlog_stmt_cache_size; SET @@global.max_binlog_stmt_cache_size= @cache_size+1;
--enable_warnings
--replace_result 18446744073709547520 MAX_BINLOG_STMT_CACHE_SIZE 4294963200 MAX_BINLOG_STMT_CACHE_SIZE
SELECT @@global.max_binlog_stmt_cache_size;
--error ER_WRONG_TYPE_FOR_VAR --disable_warnings
set global max_binlog_stmt_cache_size= 18446744073709551616; SET @@global.max_binlog_stmt_cache_size = @cache_size+4095;
select @@max_binlog_stmt_cache_size; --enable_warnings
--replace_result 4294963200 MAX_BINLOG_STMT_CACHE_SIZE 18446744073709547520 MAX_BINLOG_STMT_CACHE_SIZE
SELECT @@global.max_binlog_stmt_cache_size;
--disable_warnings
SET @@global.max_binlog_stmt_cache_size= @cache_size-1;
--enable_warnings
SELECT @@global.max_binlog_stmt_cache_size = @cache_size-4096;
# Restore @@global.max_binlog_stmt_cache_size to its initial value.
SET @@global.max_binlog_stmt_cache_size= @cache_size;
--echo # End of test
--eval set global max_binlog_stmt_cache_size= $cache_size
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment