diff options
Diffstat (limited to 'mysql-test/suite/sys_vars/t/table_definition_cache_basic.test')
-rw-r--r-- | mysql-test/suite/sys_vars/t/table_definition_cache_basic.test | 63 |
1 files changed, 25 insertions, 38 deletions
diff --git a/mysql-test/suite/sys_vars/t/table_definition_cache_basic.test b/mysql-test/suite/sys_vars/t/table_definition_cache_basic.test index d7a6ff25a0b..c887608b00f 100644 --- a/mysql-test/suite/sys_vars/t/table_definition_cache_basic.test +++ b/mysql-test/suite/sys_vars/t/table_definition_cache_basic.test @@ -1,27 +1,27 @@ -############## mysql-test\t\table_definition_cache_basic.test ################## -# # -# Variable Name: table_definition_cache # -# Scope: GLOBAL # -# Access Type: Dynamic # -# Data Type: Numeric # -# Default Value: 400 # -# Range: 1 - 524288 # -# # -# # -# Creation Date: 2008-03-16 # -# Author: Salman Rawala # -# # -# Description: Test Cases of Dynamic System Variable "table_definition_cache" # -# 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_table_definition_cache # -# # -################################################################################ +############## mysql-test\t\table_definition_cache_basic.test ################# +# # +# Variable Name: table_definition_cache # +# Scope: GLOBAL # +# Access Type: Dynamic # +# Data Type: Numeric # +# Default Value: 400 # +# Range: 1 - 524288 # +# # +# # +# Creation Date: 2008-03-16 # +# Author: Salman Rawala # +# # +# Description: Test Cases of Dynamic System Variable "table_definition_cache" # +# 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_table_definition_cache # +# # +############################################################################### --source include/load_sysvars.inc @@ -34,7 +34,6 @@ ############################################################################## SET @start_value = @@global.table_definition_cache; -SELECT @start_value; --echo '#--------------------FN_DYNVARS_019_01------------------------#' ####################################################################### @@ -43,16 +42,7 @@ SELECT @start_value; SET @@global.table_definition_cache = 100; SET @@global.table_definition_cache = DEFAULT; -SELECT @@global.table_definition_cache; - - ---echo '#---------------------FN_DYNVARS_019_02-------------------------#' -############################################### -# Verify default value of variable # -############################################### - -SET @@global.table_definition_cache = DEFAULT; -SELECT @@global.table_definition_cache = 400; +SELECT @@global.table_definition_cache > 0; --echo '#--------------------FN_DYNVARS_019_03------------------------#' @@ -147,10 +137,7 @@ SELECT table_definition_cache = @@session.table_definition_cache; ############################## SET @@global.table_definition_cache = @start_value; -SELECT @@global.table_definition_cache; - ################################################################ # END OF table_definition_cache TESTS # ################################################################ - |