mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
MDEV-4774: Fix test case
This commit is contained in:
parent
4e82aaab2f
commit
f7e03d4419
2 changed files with 51 additions and 46 deletions
|
@ -1,31 +1,22 @@
|
|||
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
|
||||
|
|
|
@ -1,22 +1,36 @@
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue