Commit 7213d3c9 authored by Patrick Crews's avatar Patrick Crews

merge

parents 2d0c3f01 9ce98dd1
...@@ -9,7 +9,6 @@ SET @min_flush_time = 0; ...@@ -9,7 +9,6 @@ SET @min_flush_time = 0;
#SET @max_flush_time = 0; #SET @max_flush_time = 0;
SET @default_key_buffer_size = 131072; SET @default_key_buffer_size = 131072;
SET @min_key_buffer_size = 36;
#SET @default_join_buffer_size = 131072; #SET @default_join_buffer_size = 131072;
#SET @min_join_buffer_size = 8200; #SET @min_join_buffer_size = 8200;
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
let $counter= 500; let $counter= 500;
while ($mysql_errno) while ($mysql_errno)
{ {
--error 0,2002,2006 --error 0,2002,2006,2013
show status; show status;
dec $counter; dec $counter;
......
...@@ -9,7 +9,6 @@ SET @min_flush_time = 0; ...@@ -9,7 +9,6 @@ SET @min_flush_time = 0;
#SET @max_flush_time = 0; #SET @max_flush_time = 0;
SET @default_key_buffer_size= 131072; SET @default_key_buffer_size= 131072;
SET @min_key_buffer_size= 8;
#SET @default_join_buffer_size = 131072; #SET @default_join_buffer_size = 131072;
#SET @min_join_buffer_size = 8200; #SET @min_join_buffer_size = 8200;
......
...@@ -17,14 +17,14 @@ ...@@ -17,14 +17,14 @@
# * Valid & Invalid values # # * Valid & Invalid values #
# * Scope & Access method # # * Scope & Access method #
# * Data Integrity # # * Data Integrity #
# Modified: Horst Hunger 2008-11-27 #
# Due to OS depending values the check has been changed #
# from concrete values to ranges. #
# # # #
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ # # Reference: #
# server-system-variables.html # # http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html #
# # # #
############################################################################### ###############################################################################
# Changes: #
# 2008-03-06 hhunger Got "lost connections with 5.1.24 #
########################################################################
--source include/load_sysvars.inc --source include/load_sysvars.inc
...@@ -38,8 +38,6 @@ ...@@ -38,8 +38,6 @@
######################################################################## ########################################################################
SET @start_value = @@global.key_buffer_size; SET @start_value = @@global.key_buffer_size;
SELECT @start_value;
--echo '#--------------------FN_DYNVARS_055_01------------------------#' --echo '#--------------------FN_DYNVARS_055_01------------------------#'
######################################################################## ########################################################################
...@@ -49,9 +47,7 @@ SELECT @start_value; ...@@ -49,9 +47,7 @@ SELECT @start_value;
SET @@global.key_buffer_size = 99; SET @@global.key_buffer_size = 99;
--Error ER_NO_DEFAULT --Error ER_NO_DEFAULT
SET @@global.key_buffer_size = DEFAULT; SET @@global.key_buffer_size = DEFAULT;
--echo 'Bug# 34878: This variable has default value according to documentation'; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
SELECT @@global.key_buffer_size = @min_key_buffer_size;
--echo '#---------------------FN_DYNVARS_055_02-------------------------#' --echo '#---------------------FN_DYNVARS_055_02-------------------------#'
############################################### ###############################################
...@@ -66,26 +62,25 @@ SELECT @@global.key_buffer_size = @start_value; ...@@ -66,26 +62,25 @@ SELECT @@global.key_buffer_size = @start_value;
# Change the value of key_buffer_size to a valid value # # Change the value of key_buffer_size to a valid value #
######################################################################## ########################################################################
SET @@global.key_buffer_size = @min_key_buffer_size; SET @@global.key_buffer_size = 8 ;
SELECT @@global.key_buffer_size= @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
--disable_warnings --disable_warnings
#Due to "lost connection" #Due to increasing the runtime significantly and allocating the buffer instantly.
#SET @@global.key_buffer_size = 4294967295; #SET @@global.key_buffer_size = 4294967295;
--enable_warnings --enable_warnings
#SELECT @@global.key_buffer_size; #SELECT @@global.key_buffer_size;
SET @@global.key_buffer_size = 1800; SET @@global.key_buffer_size = 1800;
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
SET @@global.key_buffer_size = 65535; SET @@global.key_buffer_size = 65535;
SELECT @@global.key_buffer_size; SELECT @@global.key_buffer_size;
echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--echo '#--------------------FN_DYNVARS_055_04-------------------------#' --echo '#--------------------FN_DYNVARS_055_04-------------------------#'
########################################################################### ###########################################################################
# Change the value of key_buffer_size to invalid value # # Change the value of key_buffer_size to invalid value #
########################################################################### ###########################################################################
# Due to "lost connection" # Due to increasing the runtime significantly and allocating the buffer instantly
# with a size of 18446744073709551615 bytes with 32bit exec.
#SET @@global.key_buffer_size = -1; #SET @@global.key_buffer_size = -1;
#SELECT @@global.key_buffer_size; #SELECT @@global.key_buffer_size;
#SET @@global.key_buffer_size = 100000000000; #SET @@global.key_buffer_size = 100000000000;
...@@ -96,16 +91,14 @@ SELECT @@global.key_buffer_size; ...@@ -96,16 +91,14 @@ SELECT @@global.key_buffer_size;
#SET @@global.key_buffer_size = -1024; #SET @@global.key_buffer_size = -1024;
#SELECT @@global.key_buffer_size; #SELECT @@global.key_buffer_size;
SET @@global.key_buffer_size = 4; SET @@global.key_buffer_size = 4;
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR --Error ER_WRONG_TYPE_FOR_VAR
SET @@global.key_buffer_size = ON; SET @@global.key_buffer_size = ON;
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
--Error ER_WRONG_TYPE_FOR_VAR --Error ER_WRONG_TYPE_FOR_VAR
SET @@global.key_buffer_size = 'test'; SET @@global.key_buffer_size = 'test';
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
--echo '#-------------------FN_DYNVARS_055_05----------------------------#' --echo '#-------------------FN_DYNVARS_055_05----------------------------#'
########################################################################### ###########################################################################
...@@ -114,8 +107,7 @@ SELECT @@global.key_buffer_size = @min_key_buffer_size; ...@@ -114,8 +107,7 @@ SELECT @@global.key_buffer_size = @min_key_buffer_size;
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET @@session.key_buffer_size = 0; SET @@session.key_buffer_size = 0;
SELECT @@key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
--echo '#----------------------FN_DYNVARS_055_06------------------------#' --echo '#----------------------FN_DYNVARS_055_06------------------------#'
############################################################################## ##############################################################################
...@@ -130,17 +122,15 @@ SELECT @@key_buffer_size = VARIABLE_VALUE ...@@ -130,17 +122,15 @@ SELECT @@key_buffer_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.SESSION_VARIABLES FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='key_buffer_size'; WHERE VARIABLE_NAME='key_buffer_size';
--echo '#---------------------FN_DYNVARS_055_07----------------------#' --echo '#---------------------FN_DYNVARS_055_07----------------------#'
################################################################### ###################################################################
# Check if TRUE and FALSE values can be used on variable # # Check if TRUE and FALSE values can be used on variable #
################################################################### ###################################################################
SET @@global.key_buffer_size = TRUE; SET @@global.key_buffer_size = TRUE;
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
SET @@global.key_buffer_size = FALSE; SET @@global.key_buffer_size = FALSE;
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
--echo '#---------------------FN_DYNVARS_055_08----------------------#' --echo '#---------------------FN_DYNVARS_055_08----------------------#'
##################################################################### #####################################################################
...@@ -150,7 +140,7 @@ SELECT @@global.key_buffer_size = @min_key_buffer_size; ...@@ -150,7 +140,7 @@ SELECT @@global.key_buffer_size = @min_key_buffer_size;
# due to differences in contents of the warnings # due to differences in contents of the warnings
--disable_warnings --disable_warnings
SET @@global.key_buffer_size = @min_key_buffer_size; SET @@global.key_buffer_size = 8 ;
SELECT @@key_buffer_size = @@global.key_buffer_size; SELECT @@key_buffer_size = @@global.key_buffer_size;
--enable_warnings --enable_warnings
...@@ -160,8 +150,8 @@ SELECT @@key_buffer_size = @@global.key_buffer_size; ...@@ -160,8 +150,8 @@ SELECT @@key_buffer_size = @@global.key_buffer_size;
########################################################################## ##########################################################################
--Error ER_GLOBAL_VARIABLE --Error ER_GLOBAL_VARIABLE
SET key_buffer_size = @min_key_buffer_size; SET key_buffer_size = 8 ;
SELECT @@key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
--Error ER_PARSE_ERROR --Error ER_PARSE_ERROR
SET local.key_buffer_size = 10; SET local.key_buffer_size = 10;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
...@@ -179,9 +169,9 @@ SELECT key_buffer_size = @@session.key_buffer_size; ...@@ -179,9 +169,9 @@ SELECT key_buffer_size = @@session.key_buffer_size;
############################## ##############################
SET @@global.key_buffer_size = @start_value; SET @@global.key_buffer_size = @start_value;
SELECT @@global.key_buffer_size;
--enable_warnings --enable_warnings
####################################################################### #######################################################################
# END OF key_buffer_size TESTS # # END OF key_buffer_size TESTS #
####################################################################### #######################################################################
...@@ -17,9 +17,12 @@ ...@@ -17,9 +17,12 @@
# * Valid & Invalid values # # * Valid & Invalid values #
# * Scope & Access method # # * Scope & Access method #
# * Data Integrity # # * Data Integrity #
# Modified: Horst Hunger, 2008-11-28 #
# disabled warnings as they contain the values of this variable, #
# modified the check of the value only checking a range. #
# # # #
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ # # Reference: #
# server-system-variables.html # # http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html #
# # # #
############################################################################### ###############################################################################
...@@ -37,14 +40,13 @@ ...@@ -37,14 +40,13 @@
# Save initial value # # Save initial value #
############################################################# #############################################################
# due to difference when running on Windows (bug filed) # due to differences when running on Windows (bug filed)
--source include/not_windows.inc --source include/not_windows.inc
--disable_warnings
SET @start_global_value = @@global.sort_buffer_size; SET @start_global_value = @@global.sort_buffer_size;
SELECT @start_global_value;
SET @start_session_value = @@session.sort_buffer_size; SET @start_session_value = @@session.sort_buffer_size;
SELECT @start_session_value;
--echo '#--------------------FN_DYNVARS_151_01-------------------------#' --echo '#--------------------FN_DYNVARS_151_01-------------------------#'
###################################################################### ######################################################################
...@@ -53,11 +55,11 @@ SELECT @start_session_value; ...@@ -53,11 +55,11 @@ SELECT @start_session_value;
SET @@global.sort_buffer_size = 1000; SET @@global.sort_buffer_size = 1000;
SET @@global.sort_buffer_size = DEFAULT; SET @@global.sort_buffer_size = DEFAULT;
SELECT @@global.sort_buffer_size= 2097144 OR @@global.sort_buffer_size= 2097116; SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
SET @@session.sort_buffer_size = 2000; SET @@session.sort_buffer_size = 2000;
SET @@session.sort_buffer_size = DEFAULT; SET @@session.sort_buffer_size = DEFAULT;
SELECT @@session.sort_buffer_size= 2097144 OR @@session.sort_buffer_size= 2097116; SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
--echo '#--------------------FN_DYNVARS_151_02-------------------------#' --echo '#--------------------FN_DYNVARS_151_02-------------------------#'
...@@ -66,10 +68,10 @@ SELECT @@session.sort_buffer_size= 2097144 OR @@session.sort_buffer_size= 209711 ...@@ -66,10 +68,10 @@ SELECT @@session.sort_buffer_size= 2097144 OR @@session.sort_buffer_size= 209711
###################################################################### ######################################################################
SET @@global.sort_buffer_size = DEFAULT; SET @@global.sort_buffer_size = DEFAULT;
SELECT @@global.sort_buffer_size = 2097144 OR @@global.sort_buffer_size= 2097116; SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
SET @@session.sort_buffer_size = DEFAULT; SET @@session.sort_buffer_size = DEFAULT;
SELECT @@session.sort_buffer_size = 2097144 OR @@session.sort_buffer_size= 2097116; SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
--echo '#--------------------FN_DYNVARS_151_03-------------------------#' --echo '#--------------------FN_DYNVARS_151_03-------------------------#'
...@@ -78,14 +80,13 @@ SELECT @@session.sort_buffer_size = 2097144 OR @@session.sort_buffer_size= 20971 ...@@ -78,14 +80,13 @@ SELECT @@session.sort_buffer_size = 2097144 OR @@session.sort_buffer_size= 20971
################################################################################ ################################################################################
SET @@global.sort_buffer_size = 32776; SET @@global.sort_buffer_size = 32776;
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804; SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
SET @@global.sort_buffer_size = 32777; SET @@global.sort_buffer_size = 32777;
SELECT @@global.sort_buffer_size= 32777 OR @@global.sort_buffer_size= 32804; SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
SET @@global.sort_buffer_size = 4294967295; SET @@global.sort_buffer_size = 4294967295;
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
SET @@global.sort_buffer_size = 4294967294; SET @@global.sort_buffer_size = 4294967294;
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
--echo 'Bug# 34877: Invalid Values are showing in variable on assigning valid values.';
--echo '#--------------------FN_DYNVARS_151_04-------------------------#' --echo '#--------------------FN_DYNVARS_151_04-------------------------#'
################################################################################### ###################################################################################
...@@ -93,9 +94,9 @@ SELECT @@global.sort_buffer_size; ...@@ -93,9 +94,9 @@ SELECT @@global.sort_buffer_size;
################################################################################### ###################################################################################
SET @@session.sort_buffer_size = 32776; SET @@session.sort_buffer_size = 32776;
SELECT @@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804; SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
SET @@session.sort_buffer_size = 32777; SET @@session.sort_buffer_size = 32777;
SELECT @@session.sort_buffer_size= 32777 OR @@session.sort_buffer_size= 32804; SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
SET @@session.sort_buffer_size = 4294967295; SET @@session.sort_buffer_size = 4294967295;
SELECT @@session.sort_buffer_size; SELECT @@session.sort_buffer_size;
SET @@session.sort_buffer_size = 4294967294; SET @@session.sort_buffer_size = 4294967294;
...@@ -108,9 +109,9 @@ SELECT @@session.sort_buffer_size; ...@@ -108,9 +109,9 @@ SELECT @@session.sort_buffer_size;
################################################################## ##################################################################
SET @@global.sort_buffer_size = 32775; SET @@global.sort_buffer_size = 32775;
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804; SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
SET @@global.sort_buffer_size = -1024; SET @@global.sort_buffer_size = -1024;
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804; SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
SET @@global.sort_buffer_size = 4294967296; SET @@global.sort_buffer_size = 4294967296;
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
--Error ER_PARSE_ERROR --Error ER_PARSE_ERROR
...@@ -121,19 +122,16 @@ SET @@global.sort_buffer_size = test; ...@@ -121,19 +122,16 @@ SET @@global.sort_buffer_size = test;
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
SET @@session.sort_buffer_size = 32775; SET @@session.sort_buffer_size = 32775;
SELECT @@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804; SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
SET @@session.sort_buffer_size = -2; SET @@session.sort_buffer_size = -2;
SELECT @@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804; SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
--Error ER_PARSE_ERROR --Error ER_PARSE_ERROR
SET @@session.sort_buffer_size = 65530.34.; SET @@session.sort_buffer_size = 65530.34.;
SET @@session.sort_buffer_size = 4294967296; SET @@session.sort_buffer_size = 4294967296;
SELECT @@session.sort_buffer_size; SELECT @@session.sort_buffer_size;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR --Error ER_WRONG_TYPE_FOR_VAR
SET @@session.sort_buffer_size = test; SET @@session.sort_buffer_size = test;
SELECT @@session.sort_buffer_size;
--echo '#------------------FN_DYNVARS_151_06-----------------------#' --echo '#------------------FN_DYNVARS_151_06-----------------------#'
#################################################################### ####################################################################
...@@ -141,14 +139,16 @@ SELECT @@session.sort_buffer_size; ...@@ -141,14 +139,16 @@ SELECT @@session.sort_buffer_size;
#################################################################### ####################################################################
SELECT @@global.sort_buffer_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size'; SELECT @@global.sort_buffer_size = VARIABLE_VALUE FROM
INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
--echo '#------------------FN_DYNVARS_151_07-----------------------#' --echo '#------------------FN_DYNVARS_151_07-----------------------#'
#################################################################### ####################################################################
# Check if the value in SESSION Table matches value in variable # # Check if the value in SESSION Table matches value in variable #
#################################################################### ####################################################################
SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size'; SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM
INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
--echo '#------------------FN_DYNVARS_151_08-----------------------#' --echo '#------------------FN_DYNVARS_151_08-----------------------#'
...@@ -157,11 +157,9 @@ SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSI ...@@ -157,11 +157,9 @@ SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSI
#################################################################### ####################################################################
SET @@global.sort_buffer_size = TRUE; SET @@global.sort_buffer_size = TRUE;
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804; SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
SET @@global.sort_buffer_size = FALSE; SET @@global.sort_buffer_size = FALSE;
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804; SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
echo 'Bug: Errors should be displayed on assigning TRUE/FALSE to variable';
--echo '#---------------------FN_DYNVARS_151_09----------------------#' --echo '#---------------------FN_DYNVARS_151_09----------------------#'
#################################################################################### ####################################################################################
...@@ -171,11 +169,10 @@ echo 'Bug: Errors should be displayed on assigning TRUE/FALSE to variable'; ...@@ -171,11 +169,10 @@ echo 'Bug: Errors should be displayed on assigning TRUE/FALSE to variable';
SET @@global.sort_buffer_size = 9000; SET @@global.sort_buffer_size = 9000;
SELECT @@sort_buffer_size = @@global.sort_buffer_size; SELECT @@sort_buffer_size = @@global.sort_buffer_size;
--echo '#---------------------FN_DYNVARS_151_10----------------------#' --echo '#---------------------FN_DYNVARS_151_10----------------------#'
######################################################################################################## ###################################################################################################
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable # # Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable#
######################################################################################################## ###################################################################################################
SET @@sort_buffer_size = 9000; SET @@sort_buffer_size = 9000;
SELECT @@sort_buffer_size = @@local.sort_buffer_size; SELECT @@sort_buffer_size = @@local.sort_buffer_size;
...@@ -188,8 +185,7 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size; ...@@ -188,8 +185,7 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size;
################################################################################### ###################################################################################
SET sort_buffer_size = 9100; SET sort_buffer_size = 9100;
SELECT @sort_buffer_size= 32776 OR @@sort_buffer_size= 32804; SELECT @@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000;
SELECT @@sort_buffer_size;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
SELECT local.sort_buffer_size; SELECT local.sort_buffer_size;
--Error ER_UNKNOWN_TABLE --Error ER_UNKNOWN_TABLE
...@@ -203,11 +199,11 @@ SELECT sort_buffer_size = @@session.sort_buffer_size; ...@@ -203,11 +199,11 @@ SELECT sort_buffer_size = @@session.sort_buffer_size;
#################################### ####################################
SET @@global.sort_buffer_size = @start_global_value; SET @@global.sort_buffer_size = @start_global_value;
SELECT @@global.sort_buffer_size;
SET @@session.sort_buffer_size = @start_session_value; SET @@session.sort_buffer_size = @start_session_value;
SELECT @@session.sort_buffer_size;
--enable_warnings
############################################################# #############################################################
# END OF sort_buffer_size TESTS # # END OF sort_buffer_size TESTS #
############################################################# #############################################################
SET @start_value = @@global.key_buffer_size; SET @start_value = @@global.key_buffer_size;
SELECT @start_value;
@start_value
1048576
'#--------------------FN_DYNVARS_055_01------------------------#' '#--------------------FN_DYNVARS_055_01------------------------#'
SET @@global.key_buffer_size = 99; SET @@global.key_buffer_size = 99;
SET @@global.key_buffer_size = DEFAULT; SET @@global.key_buffer_size = DEFAULT;
ERROR 42000: Variable 'key_buffer_size' doesn't have a default value ERROR 42000: Variable 'key_buffer_size' doesn't have a default value
'Bug# 34878: This variable has default value according to documentation'; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
SELECT @@global.key_buffer_size = @min_key_buffer_size; @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
@@global.key_buffer_size = @min_key_buffer_size
1 1
'#---------------------FN_DYNVARS_055_02-------------------------#' '#---------------------FN_DYNVARS_055_02-------------------------#'
SET @@global.key_buffer_size = @start_value; SET @@global.key_buffer_size = @start_value;
...@@ -16,21 +12,20 @@ SELECT @@global.key_buffer_size = @start_value; ...@@ -16,21 +12,20 @@ SELECT @@global.key_buffer_size = @start_value;
@@global.key_buffer_size = @start_value @@global.key_buffer_size = @start_value
1 1
'#--------------------FN_DYNVARS_055_03------------------------#' '#--------------------FN_DYNVARS_055_03------------------------#'
SET @@global.key_buffer_size = @min_key_buffer_size; SET @@global.key_buffer_size = 8 ;
SELECT @@global.key_buffer_size= @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size= @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET @@global.key_buffer_size = 1800; SET @@global.key_buffer_size = 1800;
Warnings: Warnings:
Warning 1292 Truncated incorrect key_buffer_size value: '1800' Warning 1292 Truncated incorrect key_buffer_size value: '1800'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET @@global.key_buffer_size = 65535; SET @@global.key_buffer_size = 65535;
SELECT @@global.key_buffer_size; SELECT @@global.key_buffer_size;
@@global.key_buffer_size @@global.key_buffer_size
61440 61440
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
'#--------------------FN_DYNVARS_055_04-------------------------#' '#--------------------FN_DYNVARS_055_04-------------------------#'
SET @@global.key_buffer_size = 10000.01; SET @@global.key_buffer_size = 10000.01;
ERROR 42000: Incorrect argument type to variable 'key_buffer_size' ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
...@@ -40,25 +35,24 @@ SELECT @@global.key_buffer_size; ...@@ -40,25 +35,24 @@ SELECT @@global.key_buffer_size;
SET @@global.key_buffer_size = 4; SET @@global.key_buffer_size = 4;
Warnings: Warnings:
Warning 1292 Truncated incorrect key_buffer_size value: '4' Warning 1292 Truncated incorrect key_buffer_size value: '4'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@global.key_buffer_size = ON; SET @@global.key_buffer_size = ON;
ERROR 42000: Incorrect argument type to variable 'key_buffer_size' ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET @@global.key_buffer_size = 'test'; SET @@global.key_buffer_size = 'test';
ERROR 42000: Incorrect argument type to variable 'key_buffer_size' ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
'#-------------------FN_DYNVARS_055_05----------------------------#' '#-------------------FN_DYNVARS_055_05----------------------------#'
SET @@session.key_buffer_size = 0; SET @@session.key_buffer_size = 0;
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
'#----------------------FN_DYNVARS_055_06------------------------#' '#----------------------FN_DYNVARS_055_06------------------------#'
SELECT @@global.key_buffer_size = VARIABLE_VALUE SELECT @@global.key_buffer_size = VARIABLE_VALUE
...@@ -75,25 +69,25 @@ WHERE VARIABLE_NAME='key_buffer_size'; ...@@ -75,25 +69,25 @@ WHERE VARIABLE_NAME='key_buffer_size';
SET @@global.key_buffer_size = TRUE; SET @@global.key_buffer_size = TRUE;
Warnings: Warnings:
Warning 1292 Truncated incorrect key_buffer_size value: '1' Warning 1292 Truncated incorrect key_buffer_size value: '1'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET @@global.key_buffer_size = FALSE; SET @@global.key_buffer_size = FALSE;
Warnings: Warnings:
Warning 1438 Cannot drop default keycache Warning 1438 Cannot drop default keycache
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
'#---------------------FN_DYNVARS_055_08----------------------#' '#---------------------FN_DYNVARS_055_08----------------------#'
SET @@global.key_buffer_size = @min_key_buffer_size; SET @@global.key_buffer_size = 8 ;
SELECT @@key_buffer_size = @@global.key_buffer_size; SELECT @@key_buffer_size = @@global.key_buffer_size;
@@key_buffer_size = @@global.key_buffer_size @@key_buffer_size = @@global.key_buffer_size
1 1
'#---------------------FN_DYNVARS_055_09----------------------#' '#---------------------FN_DYNVARS_055_09----------------------#'
SET key_buffer_size = @min_key_buffer_size; SET key_buffer_size = 8 ;
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET local.key_buffer_size = 10; SET local.key_buffer_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size = 10' at line 1 ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size = 10' at line 1
...@@ -106,6 +100,3 @@ ERROR 42S02: Unknown table 'global' in field list ...@@ -106,6 +100,3 @@ ERROR 42S02: Unknown table 'global' in field list
SELECT key_buffer_size = @@session.key_buffer_size; SELECT key_buffer_size = @@session.key_buffer_size;
ERROR 42S22: Unknown column 'key_buffer_size' in 'field list' ERROR 42S22: Unknown column 'key_buffer_size' in 'field list'
SET @@global.key_buffer_size = @start_value; SET @@global.key_buffer_size = @start_value;
SELECT @@global.key_buffer_size;
@@global.key_buffer_size
1048576
SET @start_value = @@global.key_buffer_size; SET @start_value = @@global.key_buffer_size;
SELECT @start_value;
@start_value
1048576
'#--------------------FN_DYNVARS_055_01------------------------#' '#--------------------FN_DYNVARS_055_01------------------------#'
SET @@global.key_buffer_size = 99; SET @@global.key_buffer_size = 99;
SET @@global.key_buffer_size = DEFAULT; SET @@global.key_buffer_size = DEFAULT;
ERROR 42000: Variable 'key_buffer_size' doesn't have a default value ERROR 42000: Variable 'key_buffer_size' doesn't have a default value
'Bug# 34878: This variable has default value according to documentation'; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
SELECT @@global.key_buffer_size = @min_key_buffer_size; @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
@@global.key_buffer_size = @min_key_buffer_size
1 1
'#---------------------FN_DYNVARS_055_02-------------------------#' '#---------------------FN_DYNVARS_055_02-------------------------#'
SET @@global.key_buffer_size = @start_value; SET @@global.key_buffer_size = @start_value;
...@@ -16,21 +12,20 @@ SELECT @@global.key_buffer_size = @start_value; ...@@ -16,21 +12,20 @@ SELECT @@global.key_buffer_size = @start_value;
@@global.key_buffer_size = @start_value @@global.key_buffer_size = @start_value
1 1
'#--------------------FN_DYNVARS_055_03------------------------#' '#--------------------FN_DYNVARS_055_03------------------------#'
SET @@global.key_buffer_size = @min_key_buffer_size; SET @@global.key_buffer_size = 8 ;
SELECT @@global.key_buffer_size= @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size= @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET @@global.key_buffer_size = 1800; SET @@global.key_buffer_size = 1800;
Warnings: Warnings:
Warning 1292 Truncated incorrect key_buffer_size value: '1800' Warning 1292 Truncated incorrect key_buffer_size value: '1800'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET @@global.key_buffer_size = 65535; SET @@global.key_buffer_size = 65535;
SELECT @@global.key_buffer_size; SELECT @@global.key_buffer_size;
@@global.key_buffer_size @@global.key_buffer_size
61440 61440
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
'#--------------------FN_DYNVARS_055_04-------------------------#' '#--------------------FN_DYNVARS_055_04-------------------------#'
SET @@global.key_buffer_size = 10000.01; SET @@global.key_buffer_size = 10000.01;
ERROR 42000: Incorrect argument type to variable 'key_buffer_size' ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
...@@ -40,25 +35,24 @@ SELECT @@global.key_buffer_size; ...@@ -40,25 +35,24 @@ SELECT @@global.key_buffer_size;
SET @@global.key_buffer_size = 4; SET @@global.key_buffer_size = 4;
Warnings: Warnings:
Warning 1292 Truncated incorrect key_buffer_size value: '4' Warning 1292 Truncated incorrect key_buffer_size value: '4'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@global.key_buffer_size = ON; SET @@global.key_buffer_size = ON;
ERROR 42000: Incorrect argument type to variable 'key_buffer_size' ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET @@global.key_buffer_size = 'test'; SET @@global.key_buffer_size = 'test';
ERROR 42000: Incorrect argument type to variable 'key_buffer_size' ERROR 42000: Incorrect argument type to variable 'key_buffer_size'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
'#-------------------FN_DYNVARS_055_05----------------------------#' '#-------------------FN_DYNVARS_055_05----------------------------#'
SET @@session.key_buffer_size = 0; SET @@session.key_buffer_size = 0;
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
'#----------------------FN_DYNVARS_055_06------------------------#' '#----------------------FN_DYNVARS_055_06------------------------#'
SELECT @@global.key_buffer_size = VARIABLE_VALUE SELECT @@global.key_buffer_size = VARIABLE_VALUE
...@@ -75,25 +69,25 @@ WHERE VARIABLE_NAME='key_buffer_size'; ...@@ -75,25 +69,25 @@ WHERE VARIABLE_NAME='key_buffer_size';
SET @@global.key_buffer_size = TRUE; SET @@global.key_buffer_size = TRUE;
Warnings: Warnings:
Warning 1292 Truncated incorrect key_buffer_size value: '1' Warning 1292 Truncated incorrect key_buffer_size value: '1'
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET @@global.key_buffer_size = FALSE; SET @@global.key_buffer_size = FALSE;
Warnings: Warnings:
Warning 1438 Cannot drop default keycache Warning 1438 Cannot drop default keycache
SELECT @@global.key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@global.key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
'#---------------------FN_DYNVARS_055_08----------------------#' '#---------------------FN_DYNVARS_055_08----------------------#'
SET @@global.key_buffer_size = @min_key_buffer_size; SET @@global.key_buffer_size = 8 ;
SELECT @@key_buffer_size = @@global.key_buffer_size; SELECT @@key_buffer_size = @@global.key_buffer_size;
@@key_buffer_size = @@global.key_buffer_size @@key_buffer_size = @@global.key_buffer_size
1 1
'#---------------------FN_DYNVARS_055_09----------------------#' '#---------------------FN_DYNVARS_055_09----------------------#'
SET key_buffer_size = @min_key_buffer_size; SET key_buffer_size = 8 ;
ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL ERROR HY000: Variable 'key_buffer_size' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@key_buffer_size = @min_key_buffer_size; SELECT @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36;
@@key_buffer_size = @min_key_buffer_size @@global.key_buffer_size >= 8 AND @@global.key_buffer_size <= 36
1 1
SET local.key_buffer_size = 10; SET local.key_buffer_size = 10;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size = 10' at line 1 ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'key_buffer_size = 10' at line 1
...@@ -106,6 +100,3 @@ ERROR 42S02: Unknown table 'global' in field list ...@@ -106,6 +100,3 @@ ERROR 42S02: Unknown table 'global' in field list
SELECT key_buffer_size = @@session.key_buffer_size; SELECT key_buffer_size = @@session.key_buffer_size;
ERROR 42S22: Unknown column 'key_buffer_size' in 'field list' ERROR 42S22: Unknown column 'key_buffer_size' in 'field list'
SET @@global.key_buffer_size = @start_value; SET @@global.key_buffer_size = @start_value;
SELECT @@global.key_buffer_size;
@@global.key_buffer_size
1048576
SET @start_global_value = @@global.sort_buffer_size; SET @start_global_value = @@global.sort_buffer_size;
SELECT @start_global_value;
@start_global_value
262144
SET @start_session_value = @@session.sort_buffer_size; SET @start_session_value = @@session.sort_buffer_size;
SELECT @start_session_value;
@start_session_value
262144
'#--------------------FN_DYNVARS_151_01-------------------------#' '#--------------------FN_DYNVARS_151_01-------------------------#'
SET @@global.sort_buffer_size = 1000; SET @@global.sort_buffer_size = 1000;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '1000'
SET @@global.sort_buffer_size = DEFAULT; SET @@global.sort_buffer_size = DEFAULT;
SELECT @@global.sort_buffer_size= 2097144 OR @@global.sort_buffer_size= 2097116; SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
@@global.sort_buffer_size= 2097144 OR @@global.sort_buffer_size= 2097116 @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000
1 1
SET @@session.sort_buffer_size = 2000; SET @@session.sort_buffer_size = 2000;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '2000'
SET @@session.sort_buffer_size = DEFAULT; SET @@session.sort_buffer_size = DEFAULT;
SELECT @@session.sort_buffer_size= 2097144 OR @@session.sort_buffer_size= 2097116; SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
@@session.sort_buffer_size= 2097144 OR @@session.sort_buffer_size= 2097116 @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000
1 1
'#--------------------FN_DYNVARS_151_02-------------------------#' '#--------------------FN_DYNVARS_151_02-------------------------#'
SET @@global.sort_buffer_size = DEFAULT; SET @@global.sort_buffer_size = DEFAULT;
SELECT @@global.sort_buffer_size = 2097144 OR @@global.sort_buffer_size= 2097116; SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
@@global.sort_buffer_size = 2097144 OR @@global.sort_buffer_size= 2097116 @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000
1 1
SET @@session.sort_buffer_size = DEFAULT; SET @@session.sort_buffer_size = DEFAULT;
SELECT @@session.sort_buffer_size = 2097144 OR @@session.sort_buffer_size= 2097116; SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
@@session.sort_buffer_size = 2097144 OR @@session.sort_buffer_size= 2097116 @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000
1 1
'#--------------------FN_DYNVARS_151_03-------------------------#' '#--------------------FN_DYNVARS_151_03-------------------------#'
SET @@global.sort_buffer_size = 32776; SET @@global.sort_buffer_size = 32776;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32776' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = 32777; SET @@global.sort_buffer_size = 32777;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32777' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32777 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32777 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = 4294967295; SET @@global.sort_buffer_size = 4294967295;
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
...@@ -51,19 +37,14 @@ SET @@global.sort_buffer_size = 4294967294; ...@@ -51,19 +37,14 @@ SET @@global.sort_buffer_size = 4294967294;
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
@@global.sort_buffer_size @@global.sort_buffer_size
4294967294 4294967294
'Bug# 34877: Invalid Values are showing in variable on assigning valid values.';
'#--------------------FN_DYNVARS_151_04-------------------------#' '#--------------------FN_DYNVARS_151_04-------------------------#'
SET @@session.sort_buffer_size = 32776; SET @@session.sort_buffer_size = 32776;
Warnings: SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32776' @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
SELECT @@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804;
@@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804
1 1
SET @@session.sort_buffer_size = 32777; SET @@session.sort_buffer_size = 32777;
Warnings: SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32777' @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
SELECT @@session.sort_buffer_size= 32777 OR @@session.sort_buffer_size= 32804;
@@session.sort_buffer_size= 32777 OR @@session.sort_buffer_size= 32804
1 1
SET @@session.sort_buffer_size = 4294967295; SET @@session.sort_buffer_size = 4294967295;
SELECT @@session.sort_buffer_size; SELECT @@session.sort_buffer_size;
...@@ -75,20 +56,14 @@ SELECT @@session.sort_buffer_size; ...@@ -75,20 +56,14 @@ SELECT @@session.sort_buffer_size;
4294967294 4294967294
'#------------------FN_DYNVARS_151_05-----------------------#' '#------------------FN_DYNVARS_151_05-----------------------#'
SET @@global.sort_buffer_size = 32775; SET @@global.sort_buffer_size = 32775;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32775' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = -1024; SET @@global.sort_buffer_size = -1024;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '0' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = 4294967296; SET @@global.sort_buffer_size = 4294967296;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '4294967296'
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
@@global.sort_buffer_size @@global.sort_buffer_size
4294967295 4294967295
...@@ -103,64 +78,47 @@ SELECT @@global.sort_buffer_size; ...@@ -103,64 +78,47 @@ SELECT @@global.sort_buffer_size;
@@global.sort_buffer_size @@global.sort_buffer_size
4294967295 4294967295
SET @@session.sort_buffer_size = 32775; SET @@session.sort_buffer_size = 32775;
Warnings: SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32775' @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
SELECT @@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804;
@@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804
1 1
SET @@session.sort_buffer_size = -2; SET @@session.sort_buffer_size = -2;
Warnings: SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '0' @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
SELECT @@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804;
@@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804
1 1
SET @@session.sort_buffer_size = 65530.34.; SET @@session.sort_buffer_size = 65530.34.;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1 ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
SET @@session.sort_buffer_size = 4294967296; SET @@session.sort_buffer_size = 4294967296;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '4294967296'
SELECT @@session.sort_buffer_size; SELECT @@session.sort_buffer_size;
@@session.sort_buffer_size @@session.sort_buffer_size
4294967295 4294967295
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@session.sort_buffer_size = test; SET @@session.sort_buffer_size = test;
ERROR 42000: Incorrect argument type to variable 'sort_buffer_size' ERROR 42000: Incorrect argument type to variable 'sort_buffer_size'
SELECT @@session.sort_buffer_size;
@@session.sort_buffer_size
4294967295
'#------------------FN_DYNVARS_151_06-----------------------#' '#------------------FN_DYNVARS_151_06-----------------------#'
SELECT @@global.sort_buffer_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size'; SELECT @@global.sort_buffer_size = VARIABLE_VALUE FROM
INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
@@global.sort_buffer_size = VARIABLE_VALUE @@global.sort_buffer_size = VARIABLE_VALUE
1 1
'#------------------FN_DYNVARS_151_07-----------------------#' '#------------------FN_DYNVARS_151_07-----------------------#'
SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size'; SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM
INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
@@session.sort_buffer_size = VARIABLE_VALUE @@session.sort_buffer_size = VARIABLE_VALUE
1 1
'#------------------FN_DYNVARS_151_08-----------------------#' '#------------------FN_DYNVARS_151_08-----------------------#'
SET @@global.sort_buffer_size = TRUE; SET @@global.sort_buffer_size = TRUE;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '1' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = FALSE; SET @@global.sort_buffer_size = FALSE;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '0' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
'Bug: Errors should be displayed on assigning TRUE/FALSE to variable'
'#---------------------FN_DYNVARS_151_09----------------------#' '#---------------------FN_DYNVARS_151_09----------------------#'
SET @@global.sort_buffer_size = 9000; SET @@global.sort_buffer_size = 9000;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '9000'
SELECT @@sort_buffer_size = @@global.sort_buffer_size; SELECT @@sort_buffer_size = @@global.sort_buffer_size;
@@sort_buffer_size = @@global.sort_buffer_size @@sort_buffer_size = @@global.sort_buffer_size
0 0
'#---------------------FN_DYNVARS_151_10----------------------#' '#---------------------FN_DYNVARS_151_10----------------------#'
SET @@sort_buffer_size = 9000; SET @@sort_buffer_size = 9000;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '9000'
SELECT @@sort_buffer_size = @@local.sort_buffer_size; SELECT @@sort_buffer_size = @@local.sort_buffer_size;
@@sort_buffer_size = @@local.sort_buffer_size @@sort_buffer_size = @@local.sort_buffer_size
1 1
...@@ -169,14 +127,9 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size; ...@@ -169,14 +127,9 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size;
1 1
'#---------------------FN_DYNVARS_151_11----------------------#' '#---------------------FN_DYNVARS_151_11----------------------#'
SET sort_buffer_size = 9100; SET sort_buffer_size = 9100;
Warnings: SELECT @@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '9100' @@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000
SELECT @sort_buffer_size= 32776 OR @@sort_buffer_size= 32804; 1
@sort_buffer_size= 32776 OR @@sort_buffer_size= 32804
1
SELECT @@sort_buffer_size;
@@sort_buffer_size
32804
SELECT local.sort_buffer_size; SELECT local.sort_buffer_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SELECT session.sort_buffer_size; SELECT session.sort_buffer_size;
...@@ -184,10 +137,4 @@ ERROR 42S02: Unknown table 'session' in field list ...@@ -184,10 +137,4 @@ ERROR 42S02: Unknown table 'session' in field list
SELECT sort_buffer_size = @@session.sort_buffer_size; SELECT sort_buffer_size = @@session.sort_buffer_size;
ERROR 42S22: Unknown column 'sort_buffer_size' in 'field list' ERROR 42S22: Unknown column 'sort_buffer_size' in 'field list'
SET @@global.sort_buffer_size = @start_global_value; SET @@global.sort_buffer_size = @start_global_value;
SELECT @@global.sort_buffer_size;
@@global.sort_buffer_size
262144
SET @@session.sort_buffer_size = @start_session_value; SET @@session.sort_buffer_size = @start_session_value;
SELECT @@session.sort_buffer_size;
@@session.sort_buffer_size
262144
SET @start_global_value = @@global.sort_buffer_size; SET @start_global_value = @@global.sort_buffer_size;
SELECT @start_global_value;
@start_global_value
262144
SET @start_session_value = @@session.sort_buffer_size; SET @start_session_value = @@session.sort_buffer_size;
SELECT @start_session_value;
@start_session_value
262144
'#--------------------FN_DYNVARS_151_01-------------------------#' '#--------------------FN_DYNVARS_151_01-------------------------#'
SET @@global.sort_buffer_size = 1000; SET @@global.sort_buffer_size = 1000;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '1000'
SET @@global.sort_buffer_size = DEFAULT; SET @@global.sort_buffer_size = DEFAULT;
SELECT @@global.sort_buffer_size= 2097144 OR @@global.sort_buffer_size= 2097116; SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
@@global.sort_buffer_size= 2097144 OR @@global.sort_buffer_size= 2097116 @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000
1 1
SET @@session.sort_buffer_size = 2000; SET @@session.sort_buffer_size = 2000;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '2000'
SET @@session.sort_buffer_size = DEFAULT; SET @@session.sort_buffer_size = DEFAULT;
SELECT @@session.sort_buffer_size= 2097144 OR @@session.sort_buffer_size= 2097116; SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
@@session.sort_buffer_size= 2097144 OR @@session.sort_buffer_size= 2097116 @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000
1 1
'#--------------------FN_DYNVARS_151_02-------------------------#' '#--------------------FN_DYNVARS_151_02-------------------------#'
SET @@global.sort_buffer_size = DEFAULT; SET @@global.sort_buffer_size = DEFAULT;
SELECT @@global.sort_buffer_size = 2097144 OR @@global.sort_buffer_size= 2097116; SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
@@global.sort_buffer_size = 2097144 OR @@global.sort_buffer_size= 2097116 @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000
1 1
SET @@session.sort_buffer_size = DEFAULT; SET @@session.sort_buffer_size = DEFAULT;
SELECT @@session.sort_buffer_size = 2097144 OR @@session.sort_buffer_size= 2097116; SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
@@session.sort_buffer_size = 2097144 OR @@session.sort_buffer_size= 2097116 @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000
1 1
'#--------------------FN_DYNVARS_151_03-------------------------#' '#--------------------FN_DYNVARS_151_03-------------------------#'
SET @@global.sort_buffer_size = 32776; SET @@global.sort_buffer_size = 32776;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32776' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = 32777; SET @@global.sort_buffer_size = 32777;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32777' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32777 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32777 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = 4294967295; SET @@global.sort_buffer_size = 4294967295;
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
...@@ -51,19 +37,14 @@ SET @@global.sort_buffer_size = 4294967294; ...@@ -51,19 +37,14 @@ SET @@global.sort_buffer_size = 4294967294;
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
@@global.sort_buffer_size @@global.sort_buffer_size
4294967294 4294967294
'Bug# 34877: Invalid Values are showing in variable on assigning valid values.';
'#--------------------FN_DYNVARS_151_04-------------------------#' '#--------------------FN_DYNVARS_151_04-------------------------#'
SET @@session.sort_buffer_size = 32776; SET @@session.sort_buffer_size = 32776;
Warnings: SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32776' @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
SELECT @@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804;
@@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804
1 1
SET @@session.sort_buffer_size = 32777; SET @@session.sort_buffer_size = 32777;
Warnings: SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32777' @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
SELECT @@session.sort_buffer_size= 32777 OR @@session.sort_buffer_size= 32804;
@@session.sort_buffer_size= 32777 OR @@session.sort_buffer_size= 32804
1 1
SET @@session.sort_buffer_size = 4294967295; SET @@session.sort_buffer_size = 4294967295;
SELECT @@session.sort_buffer_size; SELECT @@session.sort_buffer_size;
...@@ -75,16 +56,12 @@ SELECT @@session.sort_buffer_size; ...@@ -75,16 +56,12 @@ SELECT @@session.sort_buffer_size;
4294967294 4294967294
'#------------------FN_DYNVARS_151_05-----------------------#' '#------------------FN_DYNVARS_151_05-----------------------#'
SET @@global.sort_buffer_size = 32775; SET @@global.sort_buffer_size = 32775;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32775' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = -1024; SET @@global.sort_buffer_size = -1024;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '0' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = 4294967296; SET @@global.sort_buffer_size = 4294967296;
SELECT @@global.sort_buffer_size; SELECT @@global.sort_buffer_size;
...@@ -101,16 +78,12 @@ SELECT @@global.sort_buffer_size; ...@@ -101,16 +78,12 @@ SELECT @@global.sort_buffer_size;
@@global.sort_buffer_size @@global.sort_buffer_size
4294967296 4294967296
SET @@session.sort_buffer_size = 32775; SET @@session.sort_buffer_size = 32775;
Warnings: SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '32775' @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
SELECT @@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804;
@@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804
1 1
SET @@session.sort_buffer_size = -2; SET @@session.sort_buffer_size = -2;
Warnings: SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '0' @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
SELECT @@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804;
@@session.sort_buffer_size= 32776 OR @@session.sort_buffer_size= 32804
1 1
SET @@session.sort_buffer_size = 65530.34.; SET @@session.sort_buffer_size = 65530.34.;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1 ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
...@@ -118,45 +91,34 @@ SET @@session.sort_buffer_size = 4294967296; ...@@ -118,45 +91,34 @@ SET @@session.sort_buffer_size = 4294967296;
SELECT @@session.sort_buffer_size; SELECT @@session.sort_buffer_size;
@@session.sort_buffer_size @@session.sort_buffer_size
4294967296 4294967296
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@session.sort_buffer_size = test; SET @@session.sort_buffer_size = test;
ERROR 42000: Incorrect argument type to variable 'sort_buffer_size' ERROR 42000: Incorrect argument type to variable 'sort_buffer_size'
SELECT @@session.sort_buffer_size;
@@session.sort_buffer_size
4294967296
'#------------------FN_DYNVARS_151_06-----------------------#' '#------------------FN_DYNVARS_151_06-----------------------#'
SELECT @@global.sort_buffer_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size'; SELECT @@global.sort_buffer_size = VARIABLE_VALUE FROM
INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
@@global.sort_buffer_size = VARIABLE_VALUE @@global.sort_buffer_size = VARIABLE_VALUE
1 1
'#------------------FN_DYNVARS_151_07-----------------------#' '#------------------FN_DYNVARS_151_07-----------------------#'
SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size'; SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM
INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
@@session.sort_buffer_size = VARIABLE_VALUE @@session.sort_buffer_size = VARIABLE_VALUE
1 1
'#------------------FN_DYNVARS_151_08-----------------------#' '#------------------FN_DYNVARS_151_08-----------------------#'
SET @@global.sort_buffer_size = TRUE; SET @@global.sort_buffer_size = TRUE;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '1' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
SET @@global.sort_buffer_size = FALSE; SET @@global.sort_buffer_size = FALSE;
Warnings: SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '0' @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
SELECT @@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804;
@@global.sort_buffer_size= 32776 OR @@global.sort_buffer_size= 32804
1 1
'Bug: Errors should be displayed on assigning TRUE/FALSE to variable'
'#---------------------FN_DYNVARS_151_09----------------------#' '#---------------------FN_DYNVARS_151_09----------------------#'
SET @@global.sort_buffer_size = 9000; SET @@global.sort_buffer_size = 9000;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '9000'
SELECT @@sort_buffer_size = @@global.sort_buffer_size; SELECT @@sort_buffer_size = @@global.sort_buffer_size;
@@sort_buffer_size = @@global.sort_buffer_size @@sort_buffer_size = @@global.sort_buffer_size
0 0
'#---------------------FN_DYNVARS_151_10----------------------#' '#---------------------FN_DYNVARS_151_10----------------------#'
SET @@sort_buffer_size = 9000; SET @@sort_buffer_size = 9000;
Warnings:
Warning 1292 Truncated incorrect sort_buffer_size value: '9000'
SELECT @@sort_buffer_size = @@local.sort_buffer_size; SELECT @@sort_buffer_size = @@local.sort_buffer_size;
@@sort_buffer_size = @@local.sort_buffer_size @@sort_buffer_size = @@local.sort_buffer_size
1 1
...@@ -165,14 +127,9 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size; ...@@ -165,14 +127,9 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size;
1 1
'#---------------------FN_DYNVARS_151_11----------------------#' '#---------------------FN_DYNVARS_151_11----------------------#'
SET sort_buffer_size = 9100; SET sort_buffer_size = 9100;
Warnings: SELECT @@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000;
Warning 1292 Truncated incorrect sort_buffer_size value: '9100' @@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000
SELECT @sort_buffer_size= 32776 OR @@sort_buffer_size= 32804; 1
@sort_buffer_size= 32776 OR @@sort_buffer_size= 32804
1
SELECT @@sort_buffer_size;
@@sort_buffer_size
32804
SELECT local.sort_buffer_size; SELECT local.sort_buffer_size;
ERROR 42S02: Unknown table 'local' in field list ERROR 42S02: Unknown table 'local' in field list
SELECT session.sort_buffer_size; SELECT session.sort_buffer_size;
...@@ -180,10 +137,4 @@ ERROR 42S02: Unknown table 'session' in field list ...@@ -180,10 +137,4 @@ ERROR 42S02: Unknown table 'session' in field list
SELECT sort_buffer_size = @@session.sort_buffer_size; SELECT sort_buffer_size = @@session.sort_buffer_size;
ERROR 42S22: Unknown column 'sort_buffer_size' in 'field list' ERROR 42S22: Unknown column 'sort_buffer_size' in 'field list'
SET @@global.sort_buffer_size = @start_global_value; SET @@global.sort_buffer_size = @start_global_value;
SELECT @@global.sort_buffer_size;
@@global.sort_buffer_size
262144
SET @@session.sort_buffer_size = @start_session_value; SET @@session.sort_buffer_size = @start_session_value;
SELECT @@session.sort_buffer_size;
@@session.sort_buffer_size
262144
SET @start_global_value = @@global.tmp_table_size; SET @start_global_value = @@global.tmp_table_size;
SELECT @start_global_value;
@start_global_value
16777216
SET @start_session_value = @@session.tmp_table_size; SET @start_session_value = @@session.tmp_table_size;
SELECT @start_session_value;
@start_session_value
16777216
'Bug# 34876: This variable has invalid default value as compared to documentation';
'#--------------------FN_DYNVARS_005_01-------------------------#' '#--------------------FN_DYNVARS_005_01-------------------------#'
SET @@global.tmp_table_size = 100; SET @@global.tmp_table_size = 100;
Warnings: Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '100' Warning 1292 Truncated incorrect tmp_table_size value: '100'
SET @@global.tmp_table_size = DEFAULT; SET @@global.tmp_table_size = DEFAULT;
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
16777216
'Bug# 34876: This variable has invalid default value as compared to documentation';
SET @@session.tmp_table_size = 200; SET @@session.tmp_table_size = 200;
Warnings: Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '200' Warning 1292 Truncated incorrect tmp_table_size value: '200'
SET @@session.tmp_table_size = DEFAULT; SET @@session.tmp_table_size = DEFAULT;
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
16777216
'Bug# 34876: This variable has invalid default value as compared to documentation';
'#--------------------FN_DYNVARS_005_02-------------------------#' '#--------------------FN_DYNVARS_005_02-------------------------#'
SET @@global.tmp_table_size = DEFAULT; SELECT @@global.tmp_table_size >= 16777216;
SELECT @@global.tmp_table_size = 33554432; @@global.tmp_table_size >= 16777216
@@global.tmp_table_size = 33554432 1
0 SELECT @@session.tmp_table_size >= 16777216;
SET @@session.tmp_table_size = DEFAULT; @@session.tmp_table_size >= 16777216
SELECT @@session.tmp_table_size = 33554432; 1
@@session.tmp_table_size = 33554432
0
'Bug# 34876: This variable has invalid default value as compared to documentation';
'#--------------------FN_DYNVARS_005_03-------------------------#' '#--------------------FN_DYNVARS_005_03-------------------------#'
SET @@global.tmp_table_size = 1024; SET @@global.tmp_table_size = 1024;
SELECT @@global.tmp_table_size; SELECT @@global.tmp_table_size;
...@@ -52,7 +34,7 @@ SET @@session.tmp_table_size = 1024; ...@@ -52,7 +34,7 @@ SET @@session.tmp_table_size = 1024;
SELECT @@session.tmp_table_size; SELECT @@session.tmp_table_size;
@@session.tmp_table_size @@session.tmp_table_size
1024 1024
SET @@session.tmp_table_size =4294967295; SET @@session.tmp_table_size = 4294967295;
SELECT @@session.tmp_table_size; SELECT @@session.tmp_table_size;
@@session.tmp_table_size @@session.tmp_table_size
4294967295 4294967295
...@@ -79,7 +61,6 @@ Warning 1292 Truncated incorrect tmp_table_size value: '1000' ...@@ -79,7 +61,6 @@ Warning 1292 Truncated incorrect tmp_table_size value: '1000'
SELECT @@global.tmp_table_size; SELECT @@global.tmp_table_size;
@@global.tmp_table_size @@global.tmp_table_size
1024 1024
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@global.tmp_table_size = ON; SET @@global.tmp_table_size = ON;
ERROR 42000: Incorrect argument type to variable 'tmp_table_size' ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@global.tmp_table_size = OFF; SET @@global.tmp_table_size = OFF;
...@@ -96,7 +77,6 @@ Warning 1292 Truncated incorrect tmp_table_size value: '0' ...@@ -96,7 +77,6 @@ Warning 1292 Truncated incorrect tmp_table_size value: '0'
SELECT @@global.tmp_table_size; SELECT @@global.tmp_table_size;
@@global.tmp_table_size @@global.tmp_table_size
1024 1024
'Bug:Error should be shown that variable is numeric and can not assigned boolean value';
SET @@global.tmp_table_size = 65530.34; SET @@global.tmp_table_size = 65530.34;
ERROR 42000: Incorrect argument type to variable 'tmp_table_size' ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@global.tmp_table_size ="Test"; SET @@global.tmp_table_size ="Test";
...@@ -120,9 +100,9 @@ SELECT @@session.tmp_table_size; ...@@ -120,9 +100,9 @@ SELECT @@session.tmp_table_size;
SET @@session.tmp_table_size = "Test"; SET @@session.tmp_table_size = "Test";
ERROR 42000: Incorrect argument type to variable 'tmp_table_size' ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@session.tmp_table_size = 12345678901; SET @@session.tmp_table_size = 12345678901;
SELECT @@session.tmp_table_size; SELECT @@session.tmp_table_size IN (12345678901,4294967295);
@@session.tmp_table_size @@session.tmp_table_size IN (12345678901,4294967295)
4294967295 1
'#------------------FN_DYNVARS_005_06-----------------------#' '#------------------FN_DYNVARS_005_06-----------------------#'
SELECT @@global.tmp_table_size = VARIABLE_VALUE SELECT @@global.tmp_table_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...@@ -163,10 +143,4 @@ ERROR 42S02: Unknown table 'global' in field list ...@@ -163,10 +143,4 @@ ERROR 42S02: Unknown table 'global' in field list
SELECT tmp_table_size = @@session.tmp_table_size; SELECT tmp_table_size = @@session.tmp_table_size;
ERROR 42S22: Unknown column 'tmp_table_size' in 'field list' ERROR 42S22: Unknown column 'tmp_table_size' in 'field list'
SET @@global.tmp_table_size = @start_global_value; SET @@global.tmp_table_size = @start_global_value;
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
16777216
SET @@session.tmp_table_size = @start_session_value; SET @@session.tmp_table_size = @start_session_value;
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
16777216
SET @start_global_value = @@global.tmp_table_size;
SELECT @start_global_value;
@start_global_value
16777216
SET @start_session_value = @@session.tmp_table_size;
SELECT @start_session_value;
@start_session_value
16777216
'Bug# 34876: This variable has invalid default value as compared to documentation';
'#--------------------FN_DYNVARS_005_01-------------------------#'
SET @@global.tmp_table_size = 100;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '100'
SET @@global.tmp_table_size = DEFAULT;
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
16777216
'Bug# 34876: This variable has invalid default value as compared to documentation';
SET @@session.tmp_table_size = 200;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '200'
SET @@session.tmp_table_size = DEFAULT;
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
16777216
'Bug# 34876: This variable has invalid default value as compared to documentation';
'#--------------------FN_DYNVARS_005_02-------------------------#'
SET @@global.tmp_table_size = DEFAULT;
SELECT @@global.tmp_table_size = 33554432;
@@global.tmp_table_size = 33554432
0
SET @@session.tmp_table_size = DEFAULT;
SELECT @@session.tmp_table_size = 33554432;
@@session.tmp_table_size = 33554432
0
'Bug# 34876: This variable has invalid default value as compared to documentation';
'#--------------------FN_DYNVARS_005_03-------------------------#'
SET @@global.tmp_table_size = 1024;
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
1024
SET @@global.tmp_table_size = 60020;
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
60020
SET @@global.tmp_table_size = 4294967295;
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
4294967295
'#--------------------FN_DYNVARS_005_04-------------------------#'
SET @@session.tmp_table_size = 1024;
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
1024
SET @@session.tmp_table_size =4294967295;
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
4294967295
SET @@session.tmp_table_size = 65535;
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
65535
'#------------------FN_DYNVARS_005_05-----------------------#'
SET @@global.tmp_table_size = 0;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '0'
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
1024
SET @@global.tmp_table_size = -1024;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '0'
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
1024
SET @@global.tmp_table_size = 1000;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '1000'
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
1024
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@global.tmp_table_size = ON;
ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@global.tmp_table_size = OFF;
ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@global.tmp_table_size = True;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '1'
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
1024
SET @@global.tmp_table_size = False;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '0'
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
1024
'Bug:Error should be shown that variable is numeric and can not assigned boolean value';
SET @@global.tmp_table_size = 65530.34;
ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@global.tmp_table_size ="Test";
ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@session.tmp_table_size = ON;
ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@session.tmp_table_size = OFF;
ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@session.tmp_table_size = True;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '1'
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
1024
SET @@session.tmp_table_size = False;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '0'
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
1024
SET @@session.tmp_table_size = "Test";
ERROR 42000: Incorrect argument type to variable 'tmp_table_size'
SET @@session.tmp_table_size = 12345678901;
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
12345678901
'#------------------FN_DYNVARS_005_06-----------------------#'
SELECT @@global.tmp_table_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='tmp_table_size';
@@global.tmp_table_size = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_005_07-----------------------#'
SELECT @@session.tmp_table_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='tmp_table_size';
@@session.tmp_table_size = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_001_09----------------------#'
SET @@global.tmp_table_size = 1024;
SET @@tmp_table_size = 4294967295;
SELECT @@tmp_table_size = @@global.tmp_table_size;
@@tmp_table_size = @@global.tmp_table_size
0
'#---------------------FN_DYNVARS_001_10----------------------#'
SET @@tmp_table_size = 100;
Warnings:
Warning 1292 Truncated incorrect tmp_table_size value: '100'
SELECT @@tmp_table_size = @@local.tmp_table_size;
@@tmp_table_size = @@local.tmp_table_size
1
SELECT @@local.tmp_table_size = @@session.tmp_table_size;
@@local.tmp_table_size = @@session.tmp_table_size
1
'#---------------------FN_DYNVARS_001_11----------------------#'
SET tmp_table_size = 1027;
SELECT @@tmp_table_size;
@@tmp_table_size
1027
SELECT local.tmp_table_size;
ERROR 42S02: Unknown table 'local' in field list
SELECT global.tmp_table_size;
ERROR 42S02: Unknown table 'global' in field list
SELECT tmp_table_size = @@session.tmp_table_size;
ERROR 42S22: Unknown column 'tmp_table_size' in 'field list'
SET @@global.tmp_table_size = @start_global_value;
SELECT @@global.tmp_table_size;
@@global.tmp_table_size
16777216
SET @@session.tmp_table_size = @start_session_value;
SELECT @@session.tmp_table_size;
@@session.tmp_table_size
16777216
############## mysql-test\t\tmp_table_size_basic.test ######################### ########################### tmp_table_size_basic.test ##########################
# # # #
# Variable Name: tmp_table_size # # Variable Name: tmp_table_size #
# Scope: GLOBAL | SESSION # # Scope: GLOBAL | SESSION #
# Access Type: Dynamic # # Access Type: Dynamic #
# Data Type: numeric # # Data Type: numeric #
# Default Value: 33554432 # # Default Value: system dependend #
# Range: 1024-4294967295 # # Range: 1024-system dependend #
# # # #
# # # #
# Creation Date: 2008-02-13 # # Creation Date: 2008-02-13 #
# Author: Salman # # Author: Salman #
# # # #
# Description: Test Cases of Dynamic System Variable tmp_table_size # # Description: Test Cases of Dynamic System Variable tmp_table_size #
# that checks the behavior of this variable in the following ways# # that checks the behavior of this variable in the following ways #
# * Default Value # # * Default Value #
# * Valid & Invalid values # # * Valid & Invalid values #
# * Scope & Access method # # * Scope & Access method #
# * Data Integrity # # * Data Integrity #
# Modified: 2008-12-04 HHunger #
# removed the differences between 64 and 32 bit platforms #
# # # #
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ # # Reference: #
# server-system-variables.html#option_mysqld_tmp_table_size # # http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html #
# # # #
############################################################################### ################################################################################
--source include/load_sysvars.inc --source include/load_sysvars.inc
...@@ -29,17 +31,12 @@ ...@@ -29,17 +31,12 @@
# START OF tmp_table_size TESTS # # START OF tmp_table_size TESTS #
############################################################## ##############################################################
############################################################# #############################################################
# Save initial value # # Save initial value #
############################################################# #############################################################
SET @start_global_value = @@global.tmp_table_size; SET @start_global_value = @@global.tmp_table_size;
SELECT @start_global_value;
SET @start_session_value = @@session.tmp_table_size; SET @start_session_value = @@session.tmp_table_size;
SELECT @start_session_value;
--echo 'Bug# 34876: This variable has invalid default value as compared to documentation';
--echo '#--------------------FN_DYNVARS_005_01-------------------------#' --echo '#--------------------FN_DYNVARS_005_01-------------------------#'
############################################################## ##############################################################
...@@ -48,27 +45,19 @@ SELECT @start_session_value; ...@@ -48,27 +45,19 @@ SELECT @start_session_value;
SET @@global.tmp_table_size = 100; SET @@global.tmp_table_size = 100;
SET @@global.tmp_table_size = DEFAULT; SET @@global.tmp_table_size = DEFAULT;
SELECT @@global.tmp_table_size;
--echo 'Bug# 34876: This variable has invalid default value as compared to documentation';
SET @@session.tmp_table_size = 200; SET @@session.tmp_table_size = 200;
SET @@session.tmp_table_size = DEFAULT; SET @@session.tmp_table_size = DEFAULT;
SELECT @@session.tmp_table_size;
--echo 'Bug# 34876: This variable has invalid default value as compared to documentation';
--echo '#--------------------FN_DYNVARS_005_02-------------------------#' --echo '#--------------------FN_DYNVARS_005_02-------------------------#'
######################################################################## ########################################################################
# Check the DEFAULT value of tmp_table_size # # Check the DEFAULT value of tmp_table_size #
######################################################################## ########################################################################
# The DEFAULT value is system dependend.
# Therefore we have only a plausibility check here
SELECT @@global.tmp_table_size >= 16777216;
SET @@global.tmp_table_size = DEFAULT; SELECT @@session.tmp_table_size >= 16777216;
SELECT @@global.tmp_table_size = 33554432;
SET @@session.tmp_table_size = DEFAULT;
SELECT @@session.tmp_table_size = 33554432;
--echo 'Bug# 34876: This variable has invalid default value as compared to documentation';
--echo '#--------------------FN_DYNVARS_005_03-------------------------#' --echo '#--------------------FN_DYNVARS_005_03-------------------------#'
######################################################################## ########################################################################
...@@ -91,7 +80,7 @@ SELECT @@global.tmp_table_size; ...@@ -91,7 +80,7 @@ SELECT @@global.tmp_table_size;
SET @@session.tmp_table_size = 1024; SET @@session.tmp_table_size = 1024;
SELECT @@session.tmp_table_size; SELECT @@session.tmp_table_size;
SET @@session.tmp_table_size =4294967295; SET @@session.tmp_table_size = 4294967295;
SELECT @@session.tmp_table_size; SELECT @@session.tmp_table_size;
SET @@session.tmp_table_size = 65535; SET @@session.tmp_table_size = 65535;
SELECT @@session.tmp_table_size; SELECT @@session.tmp_table_size;
...@@ -111,37 +100,28 @@ SELECT @@global.tmp_table_size; ...@@ -111,37 +100,28 @@ SELECT @@global.tmp_table_size;
SET @@global.tmp_table_size = 1000; SET @@global.tmp_table_size = 1000;
SELECT @@global.tmp_table_size; SELECT @@global.tmp_table_size;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable'; --Error ER_WRONG_TYPE_FOR_VAR
-- Error ER_WRONG_TYPE_FOR_VAR
SET @@global.tmp_table_size = ON; SET @@global.tmp_table_size = ON;
--Error ER_WRONG_TYPE_FOR_VAR
-- Error ER_WRONG_TYPE_FOR_VAR
SET @@global.tmp_table_size = OFF; SET @@global.tmp_table_size = OFF;
SET @@global.tmp_table_size = True; SET @@global.tmp_table_size = True;
SELECT @@global.tmp_table_size; SELECT @@global.tmp_table_size;
SET @@global.tmp_table_size = False; SET @@global.tmp_table_size = False;
SELECT @@global.tmp_table_size; SELECT @@global.tmp_table_size;
--echo 'Bug:Error should be shown that variable is numeric and can not assigned boolean value';
--Error ER_WRONG_TYPE_FOR_VAR
-- Error ER_WRONG_TYPE_FOR_VAR
SET @@global.tmp_table_size = 65530.34; SET @@global.tmp_table_size = 65530.34;
-- Error ER_WRONG_TYPE_FOR_VAR --Error ER_WRONG_TYPE_FOR_VAR
SET @@global.tmp_table_size ="Test"; SET @@global.tmp_table_size ="Test";
--Error ER_WRONG_TYPE_FOR_VAR
-- Error ER_WRONG_TYPE_FOR_VAR
SET @@session.tmp_table_size = ON; SET @@session.tmp_table_size = ON;
--Error ER_WRONG_TYPE_FOR_VAR
-- Error ER_WRONG_TYPE_FOR_VAR
SET @@session.tmp_table_size = OFF; SET @@session.tmp_table_size = OFF;
SET @@session.tmp_table_size = True; SET @@session.tmp_table_size = True;
...@@ -150,19 +130,19 @@ SELECT @@session.tmp_table_size; ...@@ -150,19 +130,19 @@ SELECT @@session.tmp_table_size;
SET @@session.tmp_table_size = False; SET @@session.tmp_table_size = False;
SELECT @@session.tmp_table_size; SELECT @@session.tmp_table_size;
-- Error ER_WRONG_TYPE_FOR_VAR --Error ER_WRONG_TYPE_FOR_VAR
SET @@session.tmp_table_size = "Test"; SET @@session.tmp_table_size = "Test";
SET @@session.tmp_table_size = 12345678901; SET @@session.tmp_table_size = 12345678901;
SELECT @@session.tmp_table_size;
# With a 64 bit mysqld:12345678901,with a 32 bit mysqld: 4294967295
SELECT @@session.tmp_table_size IN (12345678901,4294967295);
--echo '#------------------FN_DYNVARS_005_06-----------------------#' --echo '#------------------FN_DYNVARS_005_06-----------------------#'
#################################################################### ####################################################################
# Check if the value in GLOBAL Table matches value in variable # # Check if the value in GLOBAL Table matches value in variable #
#################################################################### ####################################################################
SELECT @@global.tmp_table_size = VARIABLE_VALUE SELECT @@global.tmp_table_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='tmp_table_size'; WHERE VARIABLE_NAME='tmp_table_size';
...@@ -176,9 +156,6 @@ SELECT @@session.tmp_table_size = VARIABLE_VALUE ...@@ -176,9 +156,6 @@ SELECT @@session.tmp_table_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.SESSION_VARIABLES FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='tmp_table_size'; WHERE VARIABLE_NAME='tmp_table_size';
--echo '#---------------------FN_DYNVARS_001_09----------------------#' --echo '#---------------------FN_DYNVARS_001_09----------------------#'
######################################################################## ########################################################################
# Check if global and session variables are independent of each other # # Check if global and session variables are independent of each other #
...@@ -216,16 +193,12 @@ SELECT global.tmp_table_size; ...@@ -216,16 +193,12 @@ SELECT global.tmp_table_size;
--Error ER_BAD_FIELD_ERROR --Error ER_BAD_FIELD_ERROR
SELECT tmp_table_size = @@session.tmp_table_size; SELECT tmp_table_size = @@session.tmp_table_size;
#################################### ####################################
# Restore initial value # # Restore initial value #
#################################### ####################################
SET @@global.tmp_table_size = @start_global_value; SET @@global.tmp_table_size = @start_global_value;
SELECT @@global.tmp_table_size;
SET @@session.tmp_table_size = @start_session_value; SET @@session.tmp_table_size = @start_session_value;
SELECT @@session.tmp_table_size;
################################################### ###################################################
# END OF tmp_table_size TESTS # # END OF tmp_table_size TESTS #
......
################################################################################
# Created by Horst Hunger 2008-05-07 #
# #
# Wrapper for 32 bit machines #
################################################################################
--source include/have_32bit.inc
--source suite/sys_vars/inc/tmp_table_size_basic.inc
################################################################################
# Created by Horst Hunger 2008-05-07 #
# #
# Wrapper for 64 bit machines #
################################################################################
--source include/have_64bit.inc
--source suite/sys_vars/inc/tmp_table_size_basic.inc
...@@ -12,3 +12,4 @@ ...@@ -12,3 +12,4 @@
federated_transactions : Bug#29523 Transactions do not work federated_transactions : Bug#29523 Transactions do not work
slow_query_log_func : Bug #37962: *_func tests containing sleeps/race conditions slow_query_log_func : Bug #37962: *_func tests containing sleeps/race conditions
wait_timeout_func : Bug #41225 joro wait_timeout_func fails wait_timeout_func : Bug #41225 joro wait_timeout_func fails
kill : Bug#37780 2008-12-03 HHunger need some changes to be robust enoiugh for pushbuild.
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