summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/binlog_cache_size_basic.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/sys_vars/t/binlog_cache_size_basic.test')
-rw-r--r--mysql-test/suite/sys_vars/t/binlog_cache_size_basic.test55
1 files changed, 27 insertions, 28 deletions
diff --git a/mysql-test/suite/sys_vars/t/binlog_cache_size_basic.test b/mysql-test/suite/sys_vars/t/binlog_cache_size_basic.test
index da098fc3495..45018914ebc 100644
--- a/mysql-test/suite/sys_vars/t/binlog_cache_size_basic.test
+++ b/mysql-test/suite/sys_vars/t/binlog_cache_size_basic.test
@@ -1,27 +1,27 @@
-################# mysql-test\t\binlog_cache_size_basic.test ####################
-# #
-# Variable Name: binlog_cache_size #
-# Scope: GLOBAL #
-# Access Type: Dynamic #
-# Data Type: Numeric #
-# Default Value: 32768 #
-# Range: 4096 - 4294967295 #
-# #
-# #
-# Creation Date: 2008-04-28 #
-# Author: Salman Rawala/Horst Hunger #
-# #
-# Description: Test Cases of Dynamic System Variable "binlog_cache_size" #
-# that checks behavior of this variable in the following ways #
-# * Default Value #
-# * Valid & Invalid values #
-# * Scope & Access method #
-# * Data Integrity . #
-# #
-# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
-# server-system-variables.html#option_mysqld_binlog_cache_size #
-# #
-################################################################################
+################ mysql-test\t\binlog_cache_size_basic.test ####################
+ #
+# Variable Name: binlog_cache_size #
+# Scope: GLOBAL #
+# Access Type: Dynamic #
+# Data Type: Numeric #
+# Default Value: 32768 #
+# Range: 4096 - 4294967295 #
+# #
+# #
+# Creation Date: 2008-04-28 #
+# Author: Salman Rawala/Horst Hunger #
+# #
+# Description: Test Cases of Dynamic System Variable "binlog_cache_size" #
+# that checks behavior of this variable in the following ways #
+# * Default Value #
+# * Valid & Invalid values #
+# * Scope & Access method #
+# * Data Integrity . #
+# #
+# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
+# server-system-variables.html#option_mysqld_binlog_cache_size #
+# #
+###############################################################################
#################################################################
# START OF binlog_cache_size TESTS #
@@ -32,7 +32,8 @@
#########################################################################
SET @start_value = @@global.binlog_cache_size;
-SELECT @start_value;
+set @@global.binlog_cache_size= default;
+SELECT @@global.binlog_cache_size;
--echo '#--------------------FN_DYNVARS_006_01------------------------#'
#########################################################################
@@ -49,7 +50,7 @@ SELECT @@global.binlog_cache_size;
# Verify default value of variable #
###############################################
-SET @@global.binlog_cache_size = @start_value;
+SET @@global.binlog_cache_size = default;
SELECT @@global.binlog_cache_size = 32768;
@@ -145,8 +146,6 @@ SELECT binlog_cache_size = @@session.binlog_cache_size;
##############################
SET @@global.binlog_cache_size = @start_value;
-SELECT @@global.binlog_cache_size;
-
###########################################################
# END OF binlog_cache_size TESTS #