Commit bb1e8e43 authored by Sachin Setiya's avatar Sachin Setiya

Mdev-4774- Fix tests cases

parent 1ebfecee
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709547520;
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709547519;
Warnings:
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '18446744073709547519'
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709543424
set global max_binlog_stmt_cache_size= 18446744073709551615;
Warnings:
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '18446744073709551615'
select @@max_binlog_stmt_cache_size;
@@max_binlog_stmt_cache_size
18446744073709547520
set global max_binlog_stmt_cache_size= 18446744073709551614;
Warnings:
Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '18446744073709551614'
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;
#
# MDEV-4774: Strangeness with max_binlog_stmt_cache_size Settings
#
CALL mtr.add_suppression("unsigned value 18446744073709547520 adjusted to 4294963200");
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
MAX_BINLOG_STMT_CACHE_SIZE
SET @cache_size= @@max_binlog_stmt_cache_size;
SET @@global.max_binlog_stmt_cache_size= @cache_size+1;
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
MAX_BINLOG_STMT_CACHE_SIZE
SET @@global.max_binlog_stmt_cache_size = @cache_size+4095;
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
MAX_BINLOG_STMT_CACHE_SIZE
SET @@global.max_binlog_stmt_cache_size= @cache_size-1;
SELECT @@global.max_binlog_stmt_cache_size = @cache_size-4096;
@@global.max_binlog_stmt_cache_size = @cache_size-4096
1
SET @@global.max_binlog_stmt_cache_size= @cache_size;
# End of test
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;
select @@max_binlog_stmt_cache_size;
CALL mtr.add_suppression("unsigned value 18446744073709547520 adjusted to 4294963200");
set global max_binlog_stmt_cache_size= 18446744073709547519;
select @@max_binlog_stmt_cache_size;
--replace_result 18446744073709547520 MAX_BINLOG_STMT_CACHE_SIZE 4294963200 MAX_BINLOG_STMT_CACHE_SIZE
SELECT @@global.max_binlog_stmt_cache_size;
set global max_binlog_stmt_cache_size= 18446744073709551615;
select @@max_binlog_stmt_cache_size;
# Save the initial value of @@global.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;
select @@max_binlog_stmt_cache_size;
--disable_warnings
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
set global max_binlog_stmt_cache_size= 18446744073709551616;
select @@max_binlog_stmt_cache_size;
--disable_warnings
SET @@global.max_binlog_stmt_cache_size = @cache_size+4095;
--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