mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
Merge.
This commit is contained in:
154
mysql-test/suite/sys_vars/t/binlog_cache_size_basic.test
Normal file
154
mysql-test/suite/sys_vars/t/binlog_cache_size_basic.test
Normal file
@@ -0,0 +1,154 @@
|
||||
################# mysql-test\t\binlog_cache_size_basic.test ####################
|
||||
# #
|
||||
# Variable Name: binlog_cache_size #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: Numeric #
|
||||
# Default Value: 32768 #
|
||||
# Range: 4096 - 4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-04-28 #
|
||||
# Author: Salman Rawala/Horst Hunger #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable "binlog_cache_size" #
|
||||
# that checks behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity . #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html#option_mysqld_binlog_cache_size #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
#################################################################
|
||||
# START OF binlog_cache_size TESTS #
|
||||
#################################################################
|
||||
|
||||
#########################################################################
|
||||
# Saving initial value of binlog_cache_size in a temporary variable #
|
||||
#########################################################################
|
||||
|
||||
SET @start_value = @@global.binlog_cache_size;
|
||||
SELECT @start_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_006_01------------------------#'
|
||||
#########################################################################
|
||||
# Display the DEFAULT value of binlog_cache_size #
|
||||
#########################################################################
|
||||
|
||||
SET @@global.binlog_cache_size = 100;
|
||||
SET @@global.binlog_cache_size = DEFAULT;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_006_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.binlog_cache_size = @start_value;
|
||||
SELECT @@global.binlog_cache_size = 32768;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_006_03------------------------#'
|
||||
#########################################################################
|
||||
# Change the value of binlog_cache_size to a valid value #
|
||||
#########################################################################
|
||||
|
||||
SET @@global.binlog_cache_size = 4096;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
SET @@global.binlog_cache_size = 4294967295;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
SET @@global.binlog_cache_size = 10000;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
SET @@global.binlog_cache_size = 21221204;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
echo 'Bug: Invalid values are coming in variable on assigning valid values';
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_006_04-------------------------#'
|
||||
############################################################################
|
||||
# Change the value of binlog_cache_size to invalid value #
|
||||
############################################################################
|
||||
|
||||
SET @@global.binlog_cache_size = 1024;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.binlog_cache_size = 10000.01;
|
||||
SET @@global.binlog_cache_size = -1024;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
SET @@global.binlog_cache_size = 42949672950;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
echo 'Bug: Errors are not coming on assigning invalid values to variable';
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.binlog_cache_size = ON;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.binlog_cache_size = 'test';
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_006_05----------------------------#'
|
||||
############################################################################
|
||||
# Test if accessing session binlog_cache_size gives error #
|
||||
############################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.binlog_cache_size = 0;
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_006_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.binlog_cache_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='binlog_cache_size';
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_006_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.binlog_cache_size = TRUE;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
SET @@global.binlog_cache_size = FALSE;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
echo 'Bug: Errors are not coming on assigning TRUE/FALSE to variable';
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_006_08----------------------#'
|
||||
###############################################################################
|
||||
# Check if accessing variable without SCOPE points to same global variable #
|
||||
###############################################################################
|
||||
|
||||
SET @@global.binlog_cache_size = 1;
|
||||
SELECT @@binlog_cache_size = @@global.binlog_cache_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_006_09----------------------#'
|
||||
###########################################################################
|
||||
# Check if binlog_cache_size can be accessed with and without @@ sign #
|
||||
###########################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET binlog_cache_size = 1;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.binlog_cache_size = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.binlog_cache_size;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT binlog_cache_size = @@session.binlog_cache_size;
|
||||
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.binlog_cache_size = @start_value;
|
||||
SELECT @@global.binlog_cache_size;
|
||||
|
||||
|
||||
###########################################################
|
||||
# END OF binlog_cache_size TESTS #
|
||||
###########################################################
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/binlog_cache_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/binlog_cache_size_basic.inc
|
||||
|
||||
154
mysql-test/suite/sys_vars/t/binlog_stmt_cache_size_basic.test
Normal file
154
mysql-test/suite/sys_vars/t/binlog_stmt_cache_size_basic.test
Normal file
@@ -0,0 +1,154 @@
|
||||
################ mysql-test\t\binlog_stmt_cache_size_basic.test ################
|
||||
# #
|
||||
# Variable Name: binlog_stmt_cache_size #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: Numeric #
|
||||
# Default Value: 32768 #
|
||||
# Range: 4096 - 4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2010-10-12 #
|
||||
# Author: Alfranio Correia #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable "binlog_stmt_cache_size" #
|
||||
# that checks behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity . #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.5/en/ #
|
||||
# server-system-variables.html#option_mysqld_binlog_stmt_cache_size #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
#################################################################
|
||||
# START OF binlog_stmt_cache_size TESTS #
|
||||
#################################################################
|
||||
|
||||
#########################################################################
|
||||
# Saving initial value of binlog_stmt_cache_size in a temporary variable #
|
||||
#########################################################################
|
||||
|
||||
SET @start_value = @@global.binlog_stmt_cache_size;
|
||||
SELECT @start_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_006_01------------------------#'
|
||||
#########################################################################
|
||||
# Display the DEFAULT value of binlog_stmt_cache_size #
|
||||
#########################################################################
|
||||
|
||||
SET @@global.binlog_stmt_cache_size = 100;
|
||||
SET @@global.binlog_stmt_cache_size = DEFAULT;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_006_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.binlog_stmt_cache_size = @start_value;
|
||||
SELECT @@global.binlog_stmt_cache_size = 32768;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_006_03------------------------#'
|
||||
#########################################################################
|
||||
# Change the value of binlog_stmt_cache_size to a valid value #
|
||||
#########################################################################
|
||||
|
||||
SET @@global.binlog_stmt_cache_size = 4096;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
SET @@global.binlog_stmt_cache_size = 4294967295;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
SET @@global.binlog_stmt_cache_size = 10000;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
SET @@global.binlog_stmt_cache_size = 21221204;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
echo 'Bug: Invalid values are coming in variable on assigning valid values';
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_006_04-------------------------#'
|
||||
############################################################################
|
||||
# Change the value of binlog_stmt_cache_size to invalid value #
|
||||
############################################################################
|
||||
|
||||
SET @@global.binlog_stmt_cache_size = 1024;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.binlog_stmt_cache_size = 10000.01;
|
||||
SET @@global.binlog_stmt_cache_size = -1024;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
SET @@global.binlog_stmt_cache_size = 42949672950;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
echo 'Bug: Errors are not coming on assigning invalid values to variable';
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.binlog_stmt_cache_size = ON;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.binlog_stmt_cache_size = 'test';
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_006_05----------------------------#'
|
||||
############################################################################
|
||||
# Test if accessing session binlog_stmt_cache_size gives error #
|
||||
############################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.binlog_stmt_cache_size = 0;
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_006_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.binlog_stmt_cache_size = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='binlog_stmt_cache_size';
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_006_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.binlog_stmt_cache_size = TRUE;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
SET @@global.binlog_stmt_cache_size = FALSE;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
echo 'Bug: Errors are not coming on assigning TRUE/FALSE to variable';
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_006_08----------------------#'
|
||||
###############################################################################
|
||||
# Check if accessing variable without SCOPE points to same global variable #
|
||||
###############################################################################
|
||||
|
||||
SET @@global.binlog_stmt_cache_size = 1;
|
||||
SELECT @@binlog_stmt_cache_size = @@global.binlog_stmt_cache_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_006_09----------------------#'
|
||||
###########################################################################
|
||||
# Check if binlog_stmt_cache_size can be accessed with and without @@ sign#
|
||||
###########################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET binlog_stmt_cache_size = 1;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.binlog_stmt_cache_size = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.binlog_stmt_cache_size;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT binlog_stmt_cache_size = @@session.binlog_stmt_cache_size;
|
||||
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.binlog_stmt_cache_size = @start_value;
|
||||
SELECT @@global.binlog_stmt_cache_size;
|
||||
|
||||
|
||||
###########################################################
|
||||
# END OF binlog_stmt_cache_size TESTS #
|
||||
###########################################################
|
||||
@@ -1,7 +0,0 @@
|
||||
################################################################################
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/binlog_stmt_cache_size_basic.inc
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
################################################################################
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/binlog_stmt_cache_size_basic.inc
|
||||
|
||||
202
mysql-test/suite/sys_vars/t/bulk_insert_buffer_size_basic.test
Normal file
202
mysql-test/suite/sys_vars/t/bulk_insert_buffer_size_basic.test
Normal file
@@ -0,0 +1,202 @@
|
||||
############## mysql-test\t\bulk_insert_buffer_size_basic.test #################
|
||||
# #
|
||||
# Variable Name: bulk_insert_buffer_size #
|
||||
# Scope: GLOBAL & SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: Numeric #
|
||||
# Default Value: 8388608 #
|
||||
# Range: 0 - 4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman Rawala #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable "bulk_insert_buffer_size" #
|
||||
# that checks behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity . #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html#option_mysqld_bulk_insert_buffer_size #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
#######################################################################
|
||||
# START OF bulk_insert_buffer_size TESTS #
|
||||
#######################################################################
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.bulk_insert_buffer_size;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.bulk_insert_buffer_size;
|
||||
SELECT @start_session_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_007_01-------------------------#'
|
||||
#######################################################################
|
||||
# Display the DEFAULT value of bulk_insert_buffer_size #
|
||||
#######################################################################
|
||||
|
||||
SET @@global.bulk_insert_buffer_size = 100;
|
||||
SET @@global.bulk_insert_buffer_size = DEFAULT;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
|
||||
SET @@session.bulk_insert_buffer_size = 200;
|
||||
SET @@session.bulk_insert_buffer_size = DEFAULT;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_007_02-------------------------#'
|
||||
#######################################################################
|
||||
# Check the DEFAULT value of bulk_insert_buffer_size #
|
||||
#######################################################################
|
||||
|
||||
SET @@global.bulk_insert_buffer_size = @start_global_value;
|
||||
SELECT @@global.bulk_insert_buffer_size = 8388608;
|
||||
|
||||
SET @@session.bulk_insert_buffer_size = @start_session_value;
|
||||
SELECT @@session.bulk_insert_buffer_size = 8388608;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_007_03-------------------------#'
|
||||
###############################################################################
|
||||
#Change the value of bulk_insert_buffer_size to valid values for GLOBAL Scope #
|
||||
###############################################################################
|
||||
|
||||
SET @@global.bulk_insert_buffer_size = 0;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
SET @@global.bulk_insert_buffer_size = 1;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
SET @@global.bulk_insert_buffer_size = 4294967295;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
SET @@global.bulk_insert_buffer_size = 429496;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_007_04-------------------------#'
|
||||
###############################################################################
|
||||
#Change the value of bulk_insert_buffer_size to valid values for SESSION Scope#
|
||||
###############################################################################
|
||||
|
||||
SET @@session.bulk_insert_buffer_size = 0;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
SET @@session.bulk_insert_buffer_size = 1;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
SET @@session.bulk_insert_buffer_size = 4294967295;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
SET @@session.bulk_insert_buffer_size = 429496;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_007_05-----------------------#'
|
||||
###################################################################
|
||||
# Change the value of bulk_insert_buffer_size to an invalid value #
|
||||
###################################################################
|
||||
|
||||
SET @@global.bulk_insert_buffer_size = 42949672950;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
SET @@global.bulk_insert_buffer_size = -1024;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.bulk_insert_buffer_size = test;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.bulk_insert_buffer_size = ON;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.bulk_insert_buffer_size = 429496.10;
|
||||
|
||||
SET @@session.bulk_insert_buffer_size = 42949672950;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
SET @@session.bulk_insert_buffer_size = -2;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.bulk_insert_buffer_size = test;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.bulk_insert_buffer_size = 429496.10;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_007_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@global.bulk_insert_buffer_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='bulk_insert_buffer_size';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_007_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.bulk_insert_buffer_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='bulk_insert_buffer_size';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_007_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.bulk_insert_buffer_size = TRUE;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
SET @@global.bulk_insert_buffer_size = FALSE;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
|
||||
SET @@session.bulk_insert_buffer_size = TRUE;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
SET @@session.bulk_insert_buffer_size = FALSE;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_007_09----------------------#'
|
||||
##############################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points #
|
||||
# to same session variable #
|
||||
##############################################################################
|
||||
|
||||
SET @@bulk_insert_buffer_size = 100;
|
||||
SELECT @@bulk_insert_buffer_size = @@local.bulk_insert_buffer_size;
|
||||
SELECT @@local.bulk_insert_buffer_size = @@session.bulk_insert_buffer_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_007_10----------------------#'
|
||||
###############################################################################
|
||||
# Check if bulk_insert_buffer_size can be accessed with and without @@ sign #
|
||||
###############################################################################
|
||||
|
||||
SET bulk_insert_buffer_size = 1;
|
||||
SELECT @@bulk_insert_buffer_size;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET local.bulk_insert_buffer_size = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.bulk_insert_buffer_size;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET session.bulk_insert_buffer_size = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.bulk_insert_buffer_size;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT bulk_insert_buffer_size = @@session.bulk_insert_buffer_size;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.bulk_insert_buffer_size = @start_global_value;
|
||||
SELECT @@global.bulk_insert_buffer_size;
|
||||
SET @@session.bulk_insert_buffer_size = @start_session_value;
|
||||
SELECT @@session.bulk_insert_buffer_size;
|
||||
|
||||
|
||||
####################################################
|
||||
# END OF bulk_insert_buffer_size TESTS #
|
||||
####################################################
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/bulk_insert_buffer_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/bulk_insert_buffer_size_basic.inc
|
||||
|
||||
166
mysql-test/suite/sys_vars/t/delayed_insert_limit_basic.test
Normal file
166
mysql-test/suite/sys_vars/t/delayed_insert_limit_basic.test
Normal file
@@ -0,0 +1,166 @@
|
||||
############### mysql-test\t\delayed_insert_limit_basic.test ###################
|
||||
# #
|
||||
# Variable Name: delayed_insert_limit #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: Numeric #
|
||||
# Default Value: 100 #
|
||||
# Range: 1 - 4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman Rawala #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable "delayed_insert_limit" #
|
||||
# that checks behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html#option_mysqld_delayed_insert_limit #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
#################################################################
|
||||
# START OF delayed_insert_limit TESTS #
|
||||
#################################################################
|
||||
|
||||
#########################################################################
|
||||
# Saving initial value of delayed_insert_limit in a temporary variable #
|
||||
#########################################################################
|
||||
|
||||
SET @start_value = @@global.delayed_insert_limit;
|
||||
SELECT @start_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_024_01------------------------#'
|
||||
#########################################################################
|
||||
# Display the DEFAULT value of delayed_insert_limit #
|
||||
#########################################################################
|
||||
|
||||
SET @@global.delayed_insert_limit = 100;
|
||||
SET @@global.delayed_insert_limit = DEFAULT;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_024_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.delayed_insert_limit = @start_value;
|
||||
SELECT @@global.delayed_insert_limit = 100;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_024_03------------------------#'
|
||||
#########################################################################
|
||||
# Change the value of delayed_insert_limit to a valid value #
|
||||
#########################################################################
|
||||
|
||||
SET @@global.delayed_insert_limit = 10000;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
SET @@global.delayed_insert_limit = 4294967295;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
SET @@global.delayed_insert_limit = 1;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_024_04-------------------------#'
|
||||
############################################################################
|
||||
# Change the value of delayed_insert_limit to invalid value #
|
||||
############################################################################
|
||||
|
||||
SET @@global.delayed_insert_limit = 0;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
SET @@global.delayed_insert_limit = -1024;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
SET @@global.delayed_insert_limit = 42949672950;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.delayed_insert_limit = 429496729.5;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.delayed_insert_limit = ON;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_024_05----------------------------#'
|
||||
############################################################################
|
||||
# Test if accessing session delayed_insert_limit gives error #
|
||||
############################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.delayed_insert_limit = 0;
|
||||
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT @@Session.delayed_insert_limit;
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_024_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL & SESSION Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.delayed_insert_limit =
|
||||
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='delayed_insert_limit';
|
||||
|
||||
SELECT @@delayed_insert_limit =
|
||||
VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='delayed_insert_limit';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_024_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.delayed_insert_limit = TRUE;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
SET @@global.delayed_insert_limit = FALSE;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_024_08----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@global.delayed_insert_limit = 1;
|
||||
SELECT @@delayed_insert_limit = @@global.delayed_insert_limit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_024_09----------------------#'
|
||||
##############################################################################
|
||||
# Check if delayed_insert_limit can be accessed with and without @@ sign #
|
||||
##############################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET delayed_insert_limit = 1;
|
||||
SELECT @@delayed_insert_limit;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET local.delayed_insert_limit = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.delayed_insert_limit;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.delayed_insert_limit = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.delayed_insert_limit;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT delayed_insert_limit = @@session.delayed_insert_limit;
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.delayed_insert_limit = @start_value;
|
||||
SELECT @@global.delayed_insert_limit;
|
||||
|
||||
|
||||
###########################################################
|
||||
# END OF delayed_insert_limit TESTS #
|
||||
###########################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/delayed_insert_limit_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/delayed_insert_limit_basic.inc
|
||||
|
||||
162
mysql-test/suite/sys_vars/t/delayed_queue_size_basic.test
Normal file
162
mysql-test/suite/sys_vars/t/delayed_queue_size_basic.test
Normal file
@@ -0,0 +1,162 @@
|
||||
################# mysql-test\t\delayed_queue_size_basic.test ###################
|
||||
# #
|
||||
# Variable Name: delayed_queue_size #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: Numeric #
|
||||
# Default Value: 1000 #
|
||||
# Range: 1 - 4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman Rawala #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable "delayed_queue_size" #
|
||||
# that checks behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity . #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html#option_mysqld_delayed_queue_size #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
#################################################################
|
||||
# START OF delayed_queue_size TESTS #
|
||||
#################################################################
|
||||
|
||||
#########################################################################
|
||||
# Saving initial value of delayed_queue_size in a temporary variable #
|
||||
#########################################################################
|
||||
|
||||
SET @start_value = @@global.delayed_queue_size;
|
||||
SELECT @start_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_026_01------------------------#'
|
||||
#########################################################################
|
||||
# Display the DEFAULT value of delayed_queue_size #
|
||||
#########################################################################
|
||||
|
||||
SET @@global.delayed_queue_size = 100;
|
||||
SET @@global.delayed_queue_size = DEFAULT;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_026_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.delayed_queue_size = @start_value;
|
||||
SELECT @@global.delayed_queue_size = 1000;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_026_03------------------------#'
|
||||
#########################################################################
|
||||
# Change the value of delayed_queue_size to a valid value #
|
||||
#########################################################################
|
||||
|
||||
SET @@global.delayed_queue_size = 10000;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
SET @@global.delayed_queue_size = 4294967295;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
SET @@global.delayed_queue_size = 1;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_026_04-------------------------#'
|
||||
############################################################################
|
||||
# Change the value of delayed_queue_size to invalid value #
|
||||
############################################################################
|
||||
|
||||
SET @@global.delayed_queue_size = 0;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
SET @@global.delayed_queue_size = -1024;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
SET @@global.delayed_queue_size = 42949672950;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.delayed_queue_size = 429496729.5;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.delayed_queue_size = ON;
|
||||
SELECT @@delayed_queue_size;
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_026_05----------------------------#'
|
||||
############################################################################
|
||||
# Test if accessing session delayed_queue_size gives error #
|
||||
############################################################################
|
||||
|
||||
--Error 1229
|
||||
SET @@session.delayed_queue_size = 0;
|
||||
--Error 1238
|
||||
SELECT @@session.delayed_queue_size;
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_026_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL & SESSION Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.delayed_queue_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='delayed_queue_size';
|
||||
|
||||
SELECT @@delayed_queue_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='delayed_queue_size';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_026_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.delayed_queue_size = TRUE;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
SET @@global.delayed_queue_size = FALSE;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_026_08----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@global.delayed_queue_size = 1;
|
||||
SELECT @@delayed_queue_size = @@global.delayed_queue_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_026_09----------------------#'
|
||||
###########################################################################
|
||||
# Check if delayed_queue_size can be accessed with and without @@ sign #
|
||||
###########################################################################
|
||||
|
||||
--Error 1229
|
||||
SET delayed_queue_size = 1;
|
||||
SELECT @@delayed_queue_size;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET local.delayed_queue_size = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.delayed_queue_size;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.delayed_queue_size = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.delayed_queue_size;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT delayed_queue_size = @@session.delayed_queue_size;
|
||||
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.delayed_queue_size = @start_value;
|
||||
SELECT @@global.delayed_queue_size;
|
||||
|
||||
|
||||
###########################################################
|
||||
# END OF delayed_queue_size TESTS #
|
||||
###########################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/delayed_queue_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/delayed_queue_size_basic.inc
|
||||
|
||||
189
mysql-test/suite/sys_vars/t/join_buffer_size_basic.test
Normal file
189
mysql-test/suite/sys_vars/t/join_buffer_size_basic.test
Normal file
@@ -0,0 +1,189 @@
|
||||
############## mysql-test\t\join_buffer_size_basic.test ###############
|
||||
# #
|
||||
# Variable Name: join_buffer_size #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 131072 #
|
||||
# Range: 8200-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable join_buffer_size #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
################################################################
|
||||
# START OF join_buffer_size TESTS #
|
||||
################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.join_buffer_size;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.join_buffer_size;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_053_01-------------------------#'
|
||||
################################################################
|
||||
# Display the DEFAULT value of join_buffer_size #
|
||||
################################################################
|
||||
|
||||
SET @@global.join_buffer_size = DEFAULT;
|
||||
SELECT @@global.join_buffer_size;
|
||||
|
||||
SET @@session.join_buffer_size = DEFAULT;
|
||||
SELECT @@session.join_buffer_size;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_053_03-------------------------#'
|
||||
##########################################################################
|
||||
# Change the value of join_buffer_size to a valid value for GLOBAL Scope #
|
||||
##########################################################################
|
||||
|
||||
SET @@global.join_buffer_size = 8200;
|
||||
SELECT @@global.join_buffer_size;
|
||||
SET @@global.join_buffer_size = 65536;
|
||||
SELECT @@global.join_buffer_size;
|
||||
SET @@global.join_buffer_size = 4294967295;
|
||||
SELECT @@global.join_buffer_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_053_04-------------------------#'
|
||||
###########################################################################
|
||||
# Change the value of join_buffer_size to a valid value for SESSION Scope #
|
||||
###########################################################################
|
||||
|
||||
SET @@session.join_buffer_size = 8200;
|
||||
SELECT @@session.join_buffer_size;
|
||||
SET @@session.join_buffer_size = 65536;
|
||||
SELECT @@session.join_buffer_size;
|
||||
SET @@session.join_buffer_size = 4294967295;
|
||||
SELECT @@session.join_buffer_size;
|
||||
|
||||
--echo '#------------------FN_DYNVARS_053_05-----------------------#'
|
||||
############################################################
|
||||
# Change the value of join_buffer_size to an invalid value #
|
||||
############################################################
|
||||
|
||||
SET @@global.join_buffer_size = 0;
|
||||
SELECT @@global.join_buffer_size;
|
||||
SET @@global.join_buffer_size = -1024;
|
||||
SELECT @@global.join_buffer_size;
|
||||
SET @@global.join_buffer_size = 127;
|
||||
SELECT @@global.join_buffer_size;
|
||||
SET @@global.join_buffer_size = 42949672951;
|
||||
SELECT @@global.join_buffer_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.join_buffer_size = 65530.34;
|
||||
SELECT @@global.join_buffer_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.join_buffer_size = test;
|
||||
SELECT @@global.join_buffer_size;
|
||||
|
||||
SET @@session.join_buffer_size = 0;
|
||||
SELECT @@session.join_buffer_size;
|
||||
SET @@session.join_buffer_size = -1024;
|
||||
SELECT @@session.join_buffer_size;
|
||||
SET @@session.join_buffer_size = 127;
|
||||
SELECT @@session.join_buffer_size;
|
||||
SET @@session.join_buffer_size = 42949672951;
|
||||
SELECT @@session.join_buffer_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.join_buffer_size = 65530.34;
|
||||
SELECT @@session.join_buffer_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.join_buffer_size = test;
|
||||
SELECT @@session.join_buffer_size;
|
||||
|
||||
--echo '#------------------FN_DYNVARS_053_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.join_buffer_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='join_buffer_size';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_053_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.join_buffer_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='join_buffer_size';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_053_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.join_buffer_size = TRUE;
|
||||
SET @@global.join_buffer_size = FALSE;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_09----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
SET @@global.join_buffer_size = 10;
|
||||
SELECT @@join_buffer_size = @@global.join_buffer_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@join_buffer_size = 100;
|
||||
SELECT @@join_buffer_size = @@local.join_buffer_size;
|
||||
SELECT @@local.join_buffer_size = @@session.join_buffer_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_11----------------------#'
|
||||
##############################################################################
|
||||
# Check if join_buffer_size can be accessed with and without @@ sign #
|
||||
##############################################################################
|
||||
|
||||
SET join_buffer_size = 1;
|
||||
SELECT @@join_buffer_size;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.join_buffer_size;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.join_buffer_size;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT join_buffer_size = @@session.join_buffer_size;
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.join_buffer_size = @start_global_value;
|
||||
SELECT @@global.join_buffer_size;
|
||||
SET @@session.join_buffer_size = @start_session_value;
|
||||
SELECT @@session.join_buffer_size;
|
||||
|
||||
|
||||
########################################################
|
||||
# END OF join_buffer_size TESTS #
|
||||
########################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/join_buffer_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/join_buffer_size_basic.inc
|
||||
|
||||
173
mysql-test/suite/sys_vars/t/key_cache_age_threshold_basic.test
Normal file
173
mysql-test/suite/sys_vars/t/key_cache_age_threshold_basic.test
Normal file
@@ -0,0 +1,173 @@
|
||||
############## mysql-test\t\key_cache_age_threshold_basic.test ###############
|
||||
# #
|
||||
# Variable Name: key_cache_age_threshold #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 300 #
|
||||
# Range: 100-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable key_cache_age_threshold #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF key_cache_age_threshold TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
#############################################################################
|
||||
# Saving initial value of key_cache_age_threshold in a temporary variable #
|
||||
#############################################################################
|
||||
|
||||
SET @start_value = @@global.key_cache_age_threshold;
|
||||
SELECT @start_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_056_01------------------------#'
|
||||
################################################################################
|
||||
# Display the DEFAULT value of key_cache_age_threshold #
|
||||
################################################################################
|
||||
|
||||
SET @@global.key_cache_age_threshold = DEFAULT;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_056_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.key_cache_age_threshold = @start_value;
|
||||
SELECT @@global.key_cache_age_threshold = 300;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_056_03------------------------#'
|
||||
###############################################################################
|
||||
# Change the value of key_cache_age_threshold to a valid value #
|
||||
###############################################################################
|
||||
|
||||
SET @@global.key_cache_age_threshold = 100;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
SET @@global.key_cache_age_threshold = 4294967295;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
SET @@global.key_cache_age_threshold = 1800;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
SET @@global.key_cache_age_threshold = 65535;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_056_04-------------------------#'
|
||||
###########################################################################
|
||||
# Change the value of key_cache_age_threshold to invalid value #
|
||||
###########################################################################
|
||||
|
||||
SET @@global.key_cache_age_threshold = -1;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
SET @@global.key_cache_age_threshold = 42949672951;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.key_cache_age_threshold = 10000.01;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
SET @@global.key_cache_age_threshold = -1024;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
SET @@global.key_cache_age_threshold = 99;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.key_cache_age_threshold = ON;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.key_cache_age_threshold = 'test';
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_056_05----------------------------#'
|
||||
###########################################################################
|
||||
# Test if accessing session key_cache_age_threshold gives error #
|
||||
###########################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.key_cache_age_threshold = 0;
|
||||
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT @@session.key_cache_age_threshold;
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_056_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL & SESSION Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.key_cache_age_threshold = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='key_cache_age_threshold';
|
||||
|
||||
SELECT @@key_cache_age_threshold = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='key_cache_age_threshold';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_056_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.key_cache_age_threshold = TRUE;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
SET @@global.key_cache_age_threshold = FALSE;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_056_08----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@global.key_cache_age_threshold = 101;
|
||||
SELECT @@key_cache_age_threshold = @@global.key_cache_age_threshold;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_056_09----------------------#'
|
||||
########################################################################## #######
|
||||
# Check if key_cache_age_threshold can be accessed with and without @@ sign #
|
||||
##################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET key_cache_age_threshold = 8000;
|
||||
SELECT @@key_cache_age_threshold;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET local.key_cache_age_threshold = 10;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.key_cache_age_threshold;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.key_cache_age_threshold = 10;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.key_cache_age_threshold;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT key_cache_age_threshold = @@session.key_cache_age_threshold;
|
||||
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.key_cache_age_threshold = @start_value;
|
||||
SELECT @@global.key_cache_age_threshold;
|
||||
|
||||
|
||||
########################################################################
|
||||
# END OF key_cache_age_threshold TESTS #
|
||||
########################################################################
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/key_cache_age_threshold_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/key_cache_age_threshold_basic.inc
|
||||
|
||||
209
mysql-test/suite/sys_vars/t/log_warnings_basic.test
Normal file
209
mysql-test/suite/sys_vars/t/log_warnings_basic.test
Normal file
@@ -0,0 +1,209 @@
|
||||
############## mysql-test\t\log_warnings_basic.test ###############
|
||||
# #
|
||||
# Variable Name: log_warnings #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 1 #
|
||||
# Range: - #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable log_warnings #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
############################################################
|
||||
# START OF log_warnings TESTS #
|
||||
############################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.log_warnings;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.log_warnings;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_067_01-------------------------#'
|
||||
########################################################################
|
||||
# Display the DEFAULT value of log_warnings #
|
||||
########################################################################
|
||||
|
||||
SET @@global.log_warnings = 100;
|
||||
SET @@global.log_warnings = DEFAULT;
|
||||
SELECT @@global.log_warnings;
|
||||
|
||||
SET @@session.log_warnings = 200;
|
||||
SET @@session.log_warnings = DEFAULT;
|
||||
SELECT @@session.log_warnings;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_067_02-------------------------#'
|
||||
########################################################################
|
||||
# Check the DEFAULT value of log_warnings #
|
||||
########################################################################
|
||||
|
||||
SET @@global.log_warnings = DEFAULT;
|
||||
SELECT @@global.log_warnings = 1;
|
||||
|
||||
SET @@session.log_warnings = DEFAULT;
|
||||
SELECT @@session.log_warnings = 1;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_067_03-------------------------#'
|
||||
######################################################################
|
||||
# Change the value of log_warnings to a valid value for GLOBAL Scope #
|
||||
######################################################################
|
||||
|
||||
SET @@global.log_warnings = 0;
|
||||
SELECT @@global.log_warnings;
|
||||
SET @@global.log_warnings = 1;
|
||||
SELECT @@global.log_warnings;
|
||||
SET @@global.log_warnings = 60020;
|
||||
SELECT @@global.log_warnings;
|
||||
SET @@global.log_warnings = 65535;
|
||||
SELECT @@global.log_warnings;
|
||||
SET @@global.log_warnings = 65536;
|
||||
SELECT @@global.log_warnings;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_067_04-------------------------#'
|
||||
#######################################################################
|
||||
# Change the value of log_warnings to a valid value for SESSION Scope #
|
||||
#######################################################################
|
||||
|
||||
SET @@session.log_warnings = 0;
|
||||
SELECT @@session.log_warnings;
|
||||
SET @@session.log_warnings = 1;
|
||||
SELECT @@session.log_warnings;
|
||||
SET @@session.log_warnings = 50050;
|
||||
SELECT @@session.log_warnings;
|
||||
SET @@session.log_warnings = 65535;
|
||||
SELECT @@session.log_warnings;
|
||||
SET @@session.log_warnings = 65550;
|
||||
SELECT @@session.log_warnings;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_067_05-----------------------#'
|
||||
########################################################
|
||||
# Change the value of log_warnings to an invalid value #
|
||||
########################################################
|
||||
|
||||
SET @@global.log_warnings = 100000000000;
|
||||
SELECT @@global.log_warnings;
|
||||
SET @@global.log_warnings = -1024;
|
||||
SELECT @@global.log_warnings;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.log_warnings = 65530.34;
|
||||
SELECT @@global.log_warnings;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.log_warnings = test;
|
||||
SELECT @@global.log_warnings;
|
||||
|
||||
SET @@session.log_warnings = 100000000000;
|
||||
SELECT @@session.log_warnings;
|
||||
SET @@session.log_warnings = -2;
|
||||
SELECT @@session.log_warnings;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.log_warnings = 65530.34;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.log_warnings = test;
|
||||
SELECT @@session.log_warnings;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_067_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.log_warnings = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='log_warnings';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_067_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.log_warnings = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='log_warnings';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_067_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.log_warnings = TRUE;
|
||||
SELECT @@global.log_warnings;
|
||||
SET @@global.log_warnings = FALSE;
|
||||
SELECT @@global.log_warnings;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_067_09----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
SET @@global.log_warnings = 10;
|
||||
SELECT @@log_warnings = @@global.log_warnings;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_067_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@log_warnings = 100;
|
||||
SELECT @@log_warnings = @@local.log_warnings;
|
||||
SELECT @@local.log_warnings = @@session.log_warnings;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_067_11----------------------#'
|
||||
#######################################################################
|
||||
# Check if log_warnings can be accessed with and without @@ sign #
|
||||
#######################################################################
|
||||
|
||||
SET log_warnings = 1;
|
||||
SELECT @@log_warnings;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.log_warnings;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.log_warnings;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT log_warnings = @@session.log_warnings;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.log_warnings = @start_global_value;
|
||||
SELECT @@global.log_warnings;
|
||||
SET @@session.log_warnings = @start_session_value;
|
||||
SELECT @@session.log_warnings;
|
||||
|
||||
|
||||
#############################################################
|
||||
# END OF log_warnings TESTS #
|
||||
#############################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/log_warnings_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/log_warnings_basic.inc
|
||||
|
||||
178
mysql-test/suite/sys_vars/t/max_connect_errors_basic.test
Normal file
178
mysql-test/suite/sys_vars/t/max_connect_errors_basic.test
Normal file
@@ -0,0 +1,178 @@
|
||||
############## mysql-test\t\max_connect_errors_basic.test ###############
|
||||
# #
|
||||
# Variable Name: max_connect_errors #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 10 #
|
||||
# Range: 1-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable max_connect_errors #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
##################################################################
|
||||
# START OF max_connect_errors TESTS #
|
||||
##################################################################
|
||||
|
||||
|
||||
######################################################################
|
||||
# Saving initial value of max_connect_errors in a temporary variable #
|
||||
######################################################################
|
||||
|
||||
SET @start_value = @@global.max_connect_errors;
|
||||
SELECT @start_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_073_01------------------------#'
|
||||
##################################################################
|
||||
# Display the DEFAULT value of max_connect_errors #
|
||||
##################################################################
|
||||
|
||||
SET @@global.max_connect_errors = 5000;
|
||||
SET @@global.max_connect_errors = DEFAULT;
|
||||
SELECT @@global.max_connect_errors;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_073_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.max_connect_errors = @start_value;
|
||||
SELECT @@global.max_connect_errors = 10;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_073_03------------------------#'
|
||||
##################################################################
|
||||
# Change the value of max_connect_errors to a valid value #
|
||||
##################################################################
|
||||
|
||||
SET @@global.max_connect_errors = 4096;
|
||||
SELECT @@global.max_connect_errors;
|
||||
SET @@global.max_connect_errors = 4294967294;
|
||||
SELECT @@global.max_connect_errors;
|
||||
SET @@global.max_connect_errors = 4294967295;
|
||||
SELECT @@global.max_connect_errors;
|
||||
SET @@global.max_connect_errors = 1;
|
||||
SELECT @@global.max_connect_errors;
|
||||
SET @@global.max_connect_errors = 2;
|
||||
SELECT @@global.max_connect_errors;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_073_04-------------------------#'
|
||||
#####################################################################
|
||||
# Change the value of max_connect_errors to invalid value #
|
||||
#####################################################################
|
||||
|
||||
SET @@global.max_connect_errors = -1;
|
||||
SELECT @@global.max_connect_errors;
|
||||
SET @@global.max_connect_errors = 100000000000;
|
||||
SELECT @@global.max_connect_errors;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_connect_errors = 10000.01;
|
||||
SELECT @@global.max_connect_errors;
|
||||
SET @@global.max_connect_errors = -1024;
|
||||
SELECT @@global.max_connect_errors;
|
||||
SET @@global.max_connect_errors = 0;
|
||||
SELECT @@global.max_connect_errors;
|
||||
SET @@global.max_connect_errors = 4294967296;
|
||||
SELECT @@global.max_connect_errors;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_connect_errors = ON;
|
||||
SELECT @@global.max_connect_errors;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_connect_errors = 'test';
|
||||
SELECT @@global.max_connect_errors;
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_073_05----------------------------#'
|
||||
#####################################################################
|
||||
# Test if accessing session max_connect_errors gives error #
|
||||
#####################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.max_connect_errors = 4096;
|
||||
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT @@session.max_connect_errors;
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_073_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL & SESSION Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.max_connect_errors = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='max_connect_errors';
|
||||
|
||||
SELECT @@max_connect_errors = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='max_connect_errors';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_073_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.max_connect_errors = TRUE;
|
||||
SELECT @@global.max_connect_errors;
|
||||
SET @@global.max_connect_errors = FALSE;
|
||||
SELECT @@global.max_connect_errors;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_073_08----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@global.max_connect_errors = 5000;
|
||||
SELECT @@max_connect_errors = @@global.max_connect_errors;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_073_09----------------------#'
|
||||
##########################################################################
|
||||
# Check if max_connect_errors can be accessed with and without @@ sign #
|
||||
##########################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET max_connect_errors = 6000;
|
||||
SELECT @@max_connect_errors;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET local.max_connect_errors = 7000;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.max_connect_errors;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.max_connect_errors = 8000;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.max_connect_errors;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT max_connect_errors = @@session.max_connect_errors;
|
||||
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.max_connect_errors = @start_value;
|
||||
SELECT @@global.max_connect_errors;
|
||||
|
||||
|
||||
##################################################################
|
||||
# END OF max_connect_errors TESTS #
|
||||
##################################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/max_connect_errors_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/max_connect_errors_basic.inc
|
||||
|
||||
212
mysql-test/suite/sys_vars/t/max_seeks_for_key_basic.test
Normal file
212
mysql-test/suite/sys_vars/t/max_seeks_for_key_basic.test
Normal file
@@ -0,0 +1,212 @@
|
||||
############## mysql-test\t\max_seeks_for_key_basic.test ###############
|
||||
# #
|
||||
# Variable Name: max_seeks_for_key #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 4294967295 #
|
||||
# Range: 1-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable max_seeks_for_key #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
#################################################################
|
||||
# START OF max_seeks_for_key TESTS #
|
||||
#################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.max_seeks_for_key;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.max_seeks_for_key;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_083_01-------------------------#'
|
||||
#################################################################
|
||||
# Display the DEFAULT value of max_seeks_for_key #
|
||||
#################################################################
|
||||
|
||||
SET @@global.max_seeks_for_key = 100;
|
||||
SET @@global.max_seeks_for_key = DEFAULT;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
|
||||
SET @@session.max_seeks_for_key = 200;
|
||||
SET @@session.max_seeks_for_key = DEFAULT;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_083_02-------------------------#'
|
||||
#################################################################
|
||||
# Check the DEFAULT value of max_seeks_for_key #
|
||||
#################################################################
|
||||
|
||||
SET @@global.max_seeks_for_key = DEFAULT;
|
||||
SELECT @@global.max_seeks_for_key = 4294967295;
|
||||
|
||||
SET @@session.max_seeks_for_key = DEFAULT;
|
||||
SELECT @@session.max_seeks_for_key = 4294967295;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_083_03-------------------------#'
|
||||
###########################################################################
|
||||
# Change the value of max_seeks_for_key to a valid value for GLOBAL Scope #
|
||||
###########################################################################
|
||||
|
||||
SET @@global.max_seeks_for_key = 1;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
SET @@global.max_seeks_for_key = 2;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
SET @@global.max_seeks_for_key = 65536;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
SET @@global.max_seeks_for_key = 4294967295;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
SET @@global.max_seeks_for_key = 4294967294;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_083_04-------------------------#'
|
||||
############################################################################
|
||||
# Change the value of max_seeks_for_key to a valid value for SESSION Scope #
|
||||
############################################################################
|
||||
SET @@session.max_seeks_for_key = 1;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
SET @@session.max_seeks_for_key = 2;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
SET @@session.max_seeks_for_key = 4294967295;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
SET @@session.max_seeks_for_key = 4294967294;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
SET @@session.max_seeks_for_key = 65535;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_083_05-----------------------#'
|
||||
#############################################################
|
||||
# Change the value of max_seeks_for_key to an invalid value #
|
||||
#############################################################
|
||||
|
||||
SET @@global.max_seeks_for_key = 0;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
SET @@global.max_seeks_for_key = -1024;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
SET @@global.max_seeks_for_key = 4294967296;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_seeks_for_key = 65530.34;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_seeks_for_key = test;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
|
||||
SET @@session.max_seeks_for_key = 0;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
SET @@session.max_seeks_for_key = -2;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.max_seeks_for_key = 65530.34;
|
||||
SET @@session.max_seeks_for_key = 4294967296;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.max_seeks_for_key = test;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_083_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.max_seeks_for_key = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='max_seeks_for_key';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_083_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.max_seeks_for_key = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='max_seeks_for_key';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_083_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.max_seeks_for_key = TRUE;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
SET @@global.max_seeks_for_key = FALSE;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_083_09----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
SET @@global.max_seeks_for_key = 10;
|
||||
SELECT @@max_seeks_for_key = @@global.max_seeks_for_key;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_083_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@max_seeks_for_key = 100;
|
||||
SELECT @@max_seeks_for_key = @@local.max_seeks_for_key;
|
||||
SELECT @@local.max_seeks_for_key = @@session.max_seeks_for_key;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_083_11----------------------#'
|
||||
############################################################################
|
||||
# Check if max_seeks_for_key can be accessed with and without @@ sign #
|
||||
############################################################################
|
||||
|
||||
SET max_seeks_for_key = 1;
|
||||
SELECT @@max_seeks_for_key;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.max_seeks_for_key;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.max_seeks_for_key;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT max_seeks_for_key = @@session.max_seeks_for_key;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.max_seeks_for_key = @start_global_value;
|
||||
SELECT @@global.max_seeks_for_key;
|
||||
SET @@session.max_seeks_for_key = @start_session_value;
|
||||
SELECT @@session.max_seeks_for_key;
|
||||
|
||||
|
||||
#############################################################
|
||||
# END OF max_seeks_for_key TESTS #
|
||||
#############################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/max_seeks_for_key_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/max_seeks_for_key_basic.inc
|
||||
|
||||
227
mysql-test/suite/sys_vars/t/max_tmp_tables_basic.test
Normal file
227
mysql-test/suite/sys_vars/t/max_tmp_tables_basic.test
Normal file
@@ -0,0 +1,227 @@
|
||||
############## mysql-test\t\max_tmp_tables_basic.test ###############
|
||||
# #
|
||||
# Variable Name: max_tmp_tables #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 32 #
|
||||
# Range: 1-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable max_tmp_tables #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
####################################
|
||||
# START OF max_tmp_tables TESTS #
|
||||
####################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.max_tmp_tables;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.max_tmp_tables;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_086_01-------------------------#'
|
||||
######################################################
|
||||
# Display the DEFAULT value of max_tmp_tables #
|
||||
######################################################
|
||||
|
||||
SET @@global.max_tmp_tables = 1000;
|
||||
SET @@global.max_tmp_tables = DEFAULT;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
|
||||
|
||||
SET @@session.max_tmp_tables = 1000;
|
||||
SET @@session.max_tmp_tables = DEFAULT;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_086_02-------------------------#'
|
||||
######################################################
|
||||
# Check the DEFAULT value of max_tmp_tables #
|
||||
######################################################
|
||||
|
||||
SET @@global.max_tmp_tables = DEFAULT;
|
||||
SELECT @@global.max_tmp_tables = 32;
|
||||
|
||||
SET @@session.max_tmp_tables = DEFAULT;
|
||||
SELECT @@session.max_tmp_tables = 32;
|
||||
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_086_03-------------------------#'
|
||||
########################################################################
|
||||
# Change the value of max_tmp_tables to a valid value for GLOBAL Scope #
|
||||
########################################################################
|
||||
|
||||
SET @@global.max_tmp_tables = 1;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
SET @@global.max_tmp_tables = 2;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
SET @@global.max_tmp_tables = 65536;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
SET @@global.max_tmp_tables = 4294967295;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
SET @@global.max_tmp_tables = 4294967294;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_086_04-------------------------#'
|
||||
#########################################################################
|
||||
# Change the value of max_tmp_tables to a valid value for SESSION Scope #
|
||||
#########################################################################
|
||||
|
||||
SET @@session.max_tmp_tables = 1;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
|
||||
SET @@session.max_tmp_tables = 2;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
|
||||
SET @@session.max_tmp_tables = 65536;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
|
||||
SET @@session.max_tmp_tables = 4294967295;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
|
||||
SET @@session.max_tmp_tables = 4294967294;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_086_05-----------------------#'
|
||||
##########################################################
|
||||
# Change the value of max_tmp_tables to an invalid value #
|
||||
##########################################################
|
||||
|
||||
SET @@global.max_tmp_tables = -1024;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
SET @@global.max_tmp_tables = 4294967296;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
SET @@global.max_tmp_tables = -1;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
SET @@global.max_tmp_tables = 429496729500;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_tmp_tables = 65530.34;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_tmp_tables = test;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
|
||||
SET @@session.max_tmp_tables = 4294967296;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
SET @@session.max_tmp_tables = -1;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
SET @@session.max_tmp_tables = 429496729500;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
SET @@session.max_tmp_tables = -001;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.max_tmp_tables = 65530.34;
|
||||
SET @@session.max_tmp_tables = 10737418241;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.max_tmp_tables = test;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_086_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.max_tmp_tables = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='max_tmp_tables';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_086_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.max_tmp_tables = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='max_tmp_tables';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_086_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.max_tmp_tables = TRUE;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
SET @@global.max_tmp_tables = FALSE;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_086_09----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
SET @@global.max_tmp_tables = 20;
|
||||
SELECT @@max_tmp_tables = @@global.max_tmp_tables;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_086_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@max_tmp_tables = 255;
|
||||
SELECT @@max_tmp_tables = @@local.max_tmp_tables;
|
||||
SELECT @@local.max_tmp_tables = @@session.max_tmp_tables;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_086_11----------------------#'
|
||||
#########################################################################
|
||||
# Check if max_tmp_tables can be accessed with and without @@ sign #
|
||||
#########################################################################
|
||||
|
||||
|
||||
SET max_tmp_tables = 102;
|
||||
SELECT @@max_tmp_tables;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.max_tmp_tables;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.max_tmp_tables;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT max_tmp_tables = @@session.max_tmp_tables;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.max_tmp_tables = @start_global_value;
|
||||
SELECT @@global.max_tmp_tables;
|
||||
SET @@session.max_tmp_tables = @start_session_value;
|
||||
SELECT @@session.max_tmp_tables;
|
||||
|
||||
|
||||
###################################################
|
||||
# END OF max_tmp_tables TESTS #
|
||||
###################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/max_tmp_tables_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/max_tmp_tables_basic.inc
|
||||
|
||||
158
mysql-test/suite/sys_vars/t/max_write_lock_count_basic.test
Normal file
158
mysql-test/suite/sys_vars/t/max_write_lock_count_basic.test
Normal file
@@ -0,0 +1,158 @@
|
||||
############## mysql-test\t\max_write_lock_count_basic.test ###############
|
||||
# #
|
||||
# Variable Name: max_write_lock_count #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 4294967295 #
|
||||
# Range:1-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable max_write_lock_count #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
##########################################
|
||||
# START OF max_write_lock_count TESTS #
|
||||
##########################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.max_write_lock_count;
|
||||
SELECT @start_global_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_088_01-------------------------#'
|
||||
############################################################
|
||||
# Display the DEFAULT value of max_write_lock_count #
|
||||
############################################################
|
||||
|
||||
SET @@global.max_write_lock_count = 1000;
|
||||
SET @@global.max_write_lock_count = DEFAULT;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_088_02-------------------------#'
|
||||
############################################################
|
||||
# Check the DEFAULT value of max_write_lock_count #
|
||||
############################################################
|
||||
|
||||
SET @@global.max_write_lock_count = DEFAULT;
|
||||
SELECT @@global.max_write_lock_count = 4294967295;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_088_03-------------------------#'
|
||||
##############################################################################
|
||||
# Change the value of max_write_lock_count to a valid value for GLOBAL Scope #
|
||||
##############################################################################
|
||||
|
||||
SET @@global.max_write_lock_count = 1;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
SET @@global.max_write_lock_count = 2;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
SET @@global.max_write_lock_count = 65536;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
SET @@global.max_write_lock_count = 4294967295;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
SET @@global.max_write_lock_count = 4294967294;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_088_04-----------------------#'
|
||||
################################################################
|
||||
# Change the value of max_write_lock_count to an invalid value #
|
||||
################################################################
|
||||
|
||||
SET @@global.max_write_lock_count = -1024;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
SET @@global.max_write_lock_count = 4294967296;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
SET @@global.max_write_lock_count = -1;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
SET @@global.max_write_lock_count = 429496729500;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_write_lock_count = 65530.34;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.max_write_lock_count = test;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_088_05-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.max_write_lock_count = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='max_write_lock_count';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_088_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.max_write_lock_count = TRUE;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
SET @@global.max_write_lock_count = FALSE;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_088_07----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
SET @@global.max_write_lock_count = 20;
|
||||
SELECT @@max_write_lock_count = @@global.max_write_lock_count;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_088_08----------------------#'
|
||||
###############################################################################
|
||||
# Check if max_write_lock_count can be accessed with and without @@ sign #
|
||||
###############################################################################
|
||||
|
||||
|
||||
SET @@global.max_write_lock_count = 102;
|
||||
SELECT @@max_write_lock_count;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.max_write_lock_count;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.max_write_lock_count;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT max_write_lock_count = @@global.max_write_lock_count;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.max_write_lock_count = @start_global_value;
|
||||
SELECT @@global.max_write_lock_count;
|
||||
|
||||
|
||||
###################################################
|
||||
# END OF max_write_lock_count TESTS #
|
||||
###################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/max_write_lock_count_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/max_write_lock_count_basic.inc
|
||||
|
||||
218
mysql-test/suite/sys_vars/t/min_examined_row_limit_basic.test
Normal file
218
mysql-test/suite/sys_vars/t/min_examined_row_limit_basic.test
Normal file
@@ -0,0 +1,218 @@
|
||||
############## mysql-test\t\min_examined_row_limit_basic.test ###############
|
||||
# #
|
||||
# Variable Name: min_examined_row_limit #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 0 #
|
||||
# Range:0-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable min_examined_row_limit #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
######################################################################
|
||||
# START OF min_examined_row_limit TESTS #
|
||||
######################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.min_examined_row_limit;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.min_examined_row_limit;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_089_01-------------------------#'
|
||||
######################################################################
|
||||
# Display the DEFAULT value of min_examined_row_limit #
|
||||
######################################################################
|
||||
|
||||
SET @@global.min_examined_row_limit = 100;
|
||||
SET @@global.min_examined_row_limit = DEFAULT;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
|
||||
SET @@session.min_examined_row_limit = 200;
|
||||
SET @@session.min_examined_row_limit = DEFAULT;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_089_02-------------------------#'
|
||||
########################################################################
|
||||
# Check the DEFAULT value of min_examined_row_limit #
|
||||
########################################################################
|
||||
|
||||
SET @@global.min_examined_row_limit = DEFAULT;
|
||||
SELECT @@global.min_examined_row_limit = 0;
|
||||
|
||||
SET @@session.min_examined_row_limit = DEFAULT;
|
||||
SELECT @@session.min_examined_row_limit = 0;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_089_03-------------------------#'
|
||||
################################################################################
|
||||
# Change the value of min_examined_row_limit to a valid value for GLOBAL Scope #
|
||||
################################################################################
|
||||
|
||||
SET @@global.min_examined_row_limit = 0;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
SET @@global.min_examined_row_limit = 1;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
SET @@global.min_examined_row_limit = 60020;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
SET @@global.min_examined_row_limit = 65535;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
SET @@global.min_examined_row_limit = 4294967295;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
SET @@global.min_examined_row_limit = 4294967294;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_089_04-------------------------#'
|
||||
###################################################################################
|
||||
# Change the value of min_examined_row_limit to a valid value for SESSION Scope #
|
||||
###################################################################################
|
||||
|
||||
SET @@session.min_examined_row_limit = 0;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
SET @@session.min_examined_row_limit = 1;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
SET @@session.min_examined_row_limit = 50050;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
SET @@session.min_examined_row_limit = 65535;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
SET @@session.min_examined_row_limit = 4294967295;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
SET @@session.min_examined_row_limit = 4294967294;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_089_05-----------------------#'
|
||||
####################################################################
|
||||
# Change the value of min_examined_row_limit to an invalid value #
|
||||
####################################################################
|
||||
|
||||
SET @@global.min_examined_row_limit = 429496726;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
SET @@global.min_examined_row_limit = -1024;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
SET @@global.min_examined_row_limit = 429496729500;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.min_examined_row_limit = 65530.34;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.min_examined_row_limit = test;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
|
||||
SET @@session.min_examined_row_limit = 4294967296;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
SET @@session.min_examined_row_limit = -1;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.min_examined_row_limit = 65530.34;
|
||||
SET @@session.min_examined_row_limit = 4294967295021;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.min_examined_row_limit = test;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_089_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.min_examined_row_limit = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='min_examined_row_limit';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_089_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.min_examined_row_limit = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='min_examined_row_limit';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_089_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.min_examined_row_limit = TRUE;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
SET @@global.min_examined_row_limit = FALSE;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_089_09----------------------#'
|
||||
####################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
####################################################################################
|
||||
|
||||
SET @@global.min_examined_row_limit = 10;
|
||||
SELECT @@min_examined_row_limit = @@global.min_examined_row_limit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_089_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@min_examined_row_limit = 100;
|
||||
SELECT @@min_examined_row_limit = @@local.min_examined_row_limit;
|
||||
SELECT @@local.min_examined_row_limit = @@session.min_examined_row_limit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_089_11----------------------#'
|
||||
###################################################################################
|
||||
# Check if min_examined_row_limit can be accessed with and without @@ sign #
|
||||
###################################################################################
|
||||
|
||||
SET min_examined_row_limit = 1;
|
||||
SELECT @@min_examined_row_limit;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.min_examined_row_limit;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.min_examined_row_limit;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT min_examined_row_limit = @@session.min_examined_row_limit;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.min_examined_row_limit = @start_global_value;
|
||||
SELECT @@global.min_examined_row_limit;
|
||||
SET @@session.min_examined_row_limit = @start_session_value;
|
||||
SELECT @@session.min_examined_row_limit;
|
||||
|
||||
|
||||
#############################################################
|
||||
# END OF min_examined_row_limit TESTS #
|
||||
#############################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/min_examined_row_limit_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/min_examined_row_limit_basic.inc
|
||||
|
||||
234
mysql-test/suite/sys_vars/t/multi_range_count_basic.test
Normal file
234
mysql-test/suite/sys_vars/t/multi_range_count_basic.test
Normal file
@@ -0,0 +1,234 @@
|
||||
############## mysql-test\t\multi_range_count_basic.test ###############
|
||||
# #
|
||||
# Variable Name: multi_range_count #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 256 #
|
||||
# Range:1-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable multi_range_count #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
#################################################################
|
||||
# START OF multi_range_count TESTS #
|
||||
#################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.multi_range_count;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.multi_range_count;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_090_01-------------------------#'
|
||||
#################################################################
|
||||
# Display the DEFAULT value of multi_range_count #
|
||||
#################################################################
|
||||
|
||||
SET @@global.multi_range_count = 100;
|
||||
SET @@global.multi_range_count = DEFAULT;
|
||||
SELECT @@global.multi_range_count;
|
||||
|
||||
SET @@session.multi_range_count = 200;
|
||||
SET @@session.multi_range_count = DEFAULT;
|
||||
SELECT @@session.multi_range_count;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_090_02-------------------------#'
|
||||
#################################################################
|
||||
# Check the DEFAULT value of multi_range_count #
|
||||
#################################################################
|
||||
|
||||
SET @@global.multi_range_count = DEFAULT;
|
||||
SELECT @@global.multi_range_count = 256;
|
||||
|
||||
SET @@session.multi_range_count = DEFAULT;
|
||||
SELECT @@session.multi_range_count = 256;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_090_03-------------------------#'
|
||||
###########################################################################
|
||||
# Change the value of multi_range_count to a valid value for GLOBAL Scope #
|
||||
###########################################################################
|
||||
|
||||
SET @@global.multi_range_count = 1;
|
||||
SELECT @@global.multi_range_count;
|
||||
SET @@global.multi_range_count = 60020;
|
||||
SELECT @@global.multi_range_count;
|
||||
SET @@global.multi_range_count = 65535;
|
||||
SELECT @@global.multi_range_count;
|
||||
SET @@global.multi_range_count = 4294967295;
|
||||
SELECT @@global.multi_range_count;
|
||||
SET @@global.multi_range_count = 4294967294;
|
||||
SELECT @@global.multi_range_count;
|
||||
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_090_04-------------------------#'
|
||||
############################################################################
|
||||
# Change the value of multi_range_count to a valid value for SESSION Scope #
|
||||
############################################################################
|
||||
|
||||
SET @@session.multi_range_count = 1;
|
||||
SELECT @@session.multi_range_count;
|
||||
SET @@session.multi_range_count = 50050;
|
||||
SELECT @@session.multi_range_count;
|
||||
SET @@session.multi_range_count = 65535;
|
||||
SELECT @@session.multi_range_count;
|
||||
SET @@session.multi_range_count = 4294967295;
|
||||
SELECT @@session.multi_range_count;
|
||||
SET @@session.multi_range_count = 4294967294;
|
||||
SELECT @@session.multi_range_count;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_090_05-----------------------#'
|
||||
#############################################################
|
||||
# Change the value of multi_range_count to an invalid value #
|
||||
#############################################################
|
||||
|
||||
SET @@global.multi_range_count = 0;
|
||||
SELECT @@global.multi_range_count;
|
||||
--disable_warnings
|
||||
SET @@global.multi_range_count = 4294967296;
|
||||
--enable_warnings
|
||||
--replace_result 4294967296 4294967295
|
||||
SELECT @@global.multi_range_count;
|
||||
SET @@global.multi_range_count = -1024;
|
||||
SELECT @@global.multi_range_count;
|
||||
--disable_warnings
|
||||
SET @@global.multi_range_count = 429496729500;
|
||||
--enable_warnings
|
||||
--replace_result 429496729500 4294967295
|
||||
SELECT @@global.multi_range_count;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.multi_range_count = 65530.34;
|
||||
--replace_result 429496729500 4294967295
|
||||
SELECT @@global.multi_range_count;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.multi_range_count = test;
|
||||
--replace_result 429496729500 4294967295
|
||||
SELECT @@global.multi_range_count;
|
||||
|
||||
SET @@session.multi_range_count = 0;
|
||||
SELECT @@session.multi_range_count;
|
||||
--disable_warnings
|
||||
SET @@session.multi_range_count = 4294967296;
|
||||
--enable_warnings
|
||||
--replace_result 4294967296 4294967295
|
||||
SELECT @@session.multi_range_count;
|
||||
SET @@session.multi_range_count = -1;
|
||||
SELECT @@session.multi_range_count;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET @@session.multi_range_count = 65530.34.;
|
||||
--disable_warnings
|
||||
SET @@session.multi_range_count = 4294967295021;
|
||||
--enable_warnings
|
||||
--replace_result 4294967295021 4294967295
|
||||
SELECT @@session.multi_range_count;
|
||||
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.multi_range_count = test;
|
||||
--replace_result 4294967295021 4294967295
|
||||
SELECT @@session.multi_range_count;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_090_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.multi_range_count = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='multi_range_count';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_090_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.multi_range_count = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='multi_range_count';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_090_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.multi_range_count = TRUE;
|
||||
SELECT @@global.multi_range_count;
|
||||
SET @@global.multi_range_count = FALSE;
|
||||
SELECT @@global.multi_range_count;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_090_09----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
SET @@global.multi_range_count = 10;
|
||||
SELECT @@multi_range_count = @@global.multi_range_count;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_090_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@multi_range_count = 100;
|
||||
SELECT @@multi_range_count = @@local.multi_range_count;
|
||||
SELECT @@local.multi_range_count = @@session.multi_range_count;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_090_11----------------------#'
|
||||
############################################################################
|
||||
# Check if multi_range_count can be accessed with and without @@ sign #
|
||||
############################################################################
|
||||
|
||||
SET multi_range_count = 1;
|
||||
SELECT @@multi_range_count;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.multi_range_count;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.multi_range_count;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT multi_range_count = @@session.multi_range_count;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.multi_range_count = @start_global_value;
|
||||
SELECT @@global.multi_range_count;
|
||||
SET @@session.multi_range_count = @start_session_value;
|
||||
SELECT @@session.multi_range_count;
|
||||
|
||||
|
||||
######################################################
|
||||
# END OF multi_range_count TESTS #
|
||||
######################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/multi_range_count_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/multi_range_count_basic.inc
|
||||
|
||||
182
mysql-test/suite/sys_vars/t/myisam_max_sort_file_size_basic.test
Normal file
182
mysql-test/suite/sys_vars/t/myisam_max_sort_file_size_basic.test
Normal file
@@ -0,0 +1,182 @@
|
||||
|
||||
############## mysql-test\t\myisam_max_sort_file_size_basic.test ################
|
||||
# #
|
||||
# Variable Name: myisam_max_sort_file_size #
|
||||
# Scope: GLOBAL & SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: Numeric #
|
||||
# Default Value: 1 #
|
||||
# Range: 1 - 65536 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan Maredia #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable myisam_max_sort_file_size #
|
||||
# that checks the behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
###################################################################
|
||||
# START OF myisam_max_sort_file_size TESTS #
|
||||
###################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.myisam_max_sort_file_size;
|
||||
--replace_result 9223372036853727232 2146435072
|
||||
SELECT @start_global_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_094_01-------------------------#'
|
||||
###################################################################
|
||||
# Display the DEFAULT value of myisam_max_sort_file_size #
|
||||
###################################################################
|
||||
|
||||
SET @@global.myisam_max_sort_file_size = 500000;
|
||||
SET @@global.myisam_max_sort_file_size = DEFAULT;
|
||||
--replace_result 9223372036853727232 2146435072
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_094_02-------------------------#'
|
||||
###################################################################
|
||||
# Check the DEFAULT value of myisam_max_sort_file_size #
|
||||
###################################################################
|
||||
|
||||
SET @@global.myisam_max_sort_file_size = DEFAULT;
|
||||
SELECT @@global.myisam_max_sort_file_size = 2147483648;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_094_03-------------------------#'
|
||||
##################################################################################
|
||||
# Change the value of myisam_max_sort_file_size to a valid value for GLOBAL Scope #
|
||||
##################################################################################
|
||||
|
||||
SET @@global.myisam_max_sort_file_size = 0;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
SET @@global.myisam_max_sort_file_size = 1024;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
SET @@global.myisam_max_sort_file_size = 123456789;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
SET @@global.myisam_max_sort_file_size = 2147483648*2;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
SET @@global.myisam_max_sort_file_size = 2147483648*1024;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
SET @@global.myisam_max_sort_file_size = 2147483648*2147483648;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_094_04-------------------------#'
|
||||
#################################################################################
|
||||
# Check if variable can be access with session scope #
|
||||
#################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@myisam_max_sort_file_size = 2;
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.myisam_max_sort_file_size = 3;
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@local.myisam_max_sort_file_size = 4;
|
||||
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_094_05-----------------------#'
|
||||
####################################################################
|
||||
# Change the value of myisam_max_sort_file_size to an invalid value #
|
||||
####################################################################
|
||||
|
||||
SET @@global.myisam_max_sort_file_size = -1;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
SET @@global.myisam_max_sort_file_size = -2147483648;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
SET @@global.myisam_max_sort_file_size = -2147483649;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_max_sort_file_size = 65530.34;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_max_sort_file_size = 2147483649.56;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_max_sort_file_size = 1G;
|
||||
|
||||
--echo '#------------------FN_DYNVARS_094_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.myisam_max_sort_file_size = 3000;
|
||||
SELECT @@global.myisam_max_sort_file_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='myisam_max_sort_file_size';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_094_07-----------------------#'
|
||||
###########################################################################
|
||||
# Check if the value is present in INFORMATION_SCHEMA.SESSION_VARIABLES #
|
||||
###########################################################################
|
||||
|
||||
SELECT count(VARIABLE_VALUE)
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='myisam_max_sort_file_size';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_094_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.myisam_max_sort_file_size = TRUE;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
SET @@global.myisam_max_sort_file_size = FALSE;
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_09----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
|
||||
SET @@global.myisam_max_sort_file_size = 512;
|
||||
SELECT @@myisam_max_sort_file_size = @@global.myisam_max_sort_file_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_10----------------------#'
|
||||
##################################################################################
|
||||
# Check if myisam_max_sort_file_size can be accessed without @@ sign and scope #
|
||||
##################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET myisam_max_sort_file_size = 2048;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT myisam_max_sort_file_size;
|
||||
|
||||
SELECT @@myisam_max_sort_file_size;
|
||||
|
||||
#verifying another syntax for setting value#
|
||||
SET global myisam_max_sort_file_size = 64;
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.myisam_max_sort_file_size = @start_global_value;
|
||||
--replace_result 9223372036853727232 2146435072
|
||||
SELECT @@global.myisam_max_sort_file_size;
|
||||
|
||||
########################################################
|
||||
# END OF myisam_max_sort_file_size TESTS #
|
||||
########################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/myisam_max_sort_file_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/myisam_max_sort_file_size_basic.inc
|
||||
|
||||
248
mysql-test/suite/sys_vars/t/myisam_repair_threads_basic.test
Normal file
248
mysql-test/suite/sys_vars/t/myisam_repair_threads_basic.test
Normal file
@@ -0,0 +1,248 @@
|
||||
############## mysql-test\t\myisam_repair_threads_basic.test ##################
|
||||
# #
|
||||
# Variable Name: myisam_repair_threads #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 1 #
|
||||
# Range: 1-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Sharique Abdullah #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable myisam_repair_threads #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
######################################################################
|
||||
# START OF myisam_repair_threads TESTS #
|
||||
######################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.myisam_repair_threads;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.myisam_repair_threads;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_01-------------------------#'
|
||||
#################################################################
|
||||
# Display the DEFAULT value of myisam_block_size #
|
||||
#################################################################
|
||||
|
||||
SET @@global.myisam_repair_threads = 100;
|
||||
SET @@global.myisam_repair_threads = DEFAULT;
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
SET @@session.myisam_repair_threads = 200;
|
||||
SET @@session.myisam_repair_threads = DEFAULT;
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_02-------------------------#'
|
||||
######################################################################
|
||||
# Check the DEFAULT value of myisam_repair_threads #
|
||||
######################################################################
|
||||
|
||||
SET @@global.myisam_repair_threads = DEFAULT;
|
||||
SELECT @@global.myisam_repair_threads = 1;
|
||||
|
||||
SET @@session.myisam_repair_threads = DEFAULT;
|
||||
SELECT @@session.myisam_repair_threads = 1;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_03-------------------------#'
|
||||
###############################################################################
|
||||
# Change the value of myisam_repair_threads to a valid value for GLOBAL Scope#
|
||||
###############################################################################
|
||||
|
||||
SET @@global.myisam_repair_threads = 1;
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
SET @@global.myisam_repair_threads = 4294967295;
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
SET @@global.myisam_repair_threads = 655354;
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_04-------------------------#'
|
||||
###############################################################################
|
||||
# Change the value of myisam_repair_threads to a valid value for SESSION
|
||||
# Scope
|
||||
###############################################################################
|
||||
|
||||
SET @@session.myisam_repair_threads = 1;
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
SET @@session.myisam_repair_threads = 4294967295;
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
SET @@session.myisam_repair_threads = 655345;
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_05-----------------------#'
|
||||
##################################################################
|
||||
# Change the value of myisam_repair_threads to an invalid value #
|
||||
##################################################################
|
||||
|
||||
SET @@global.myisam_repair_threads = 0;
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
SET @@global.myisam_repair_threads = -1024;
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
--disable_warnings
|
||||
SET @@global.myisam_repair_threads = 429496729533;
|
||||
--enable_warnings
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_repair_threads = 65530.34;
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_repair_threads = test;
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_repair_threads = "test";
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_repair_threads = 'test';
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_repair_threads = ON;
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
|
||||
SET @@session.myisam_repair_threads = 0;
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
SET @@session.myisam_repair_threads = -2;
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.myisam_repair_threads = 65530.34;
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.myisam_repair_threads = test;
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.myisam_repair_threads = "test";
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.myisam_repair_threads = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='myisam_repair_threads ';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.myisam_repair_threads = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='myisam_repair_threads ';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.myisam_repair_threads = TRUE;
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
SET @@global.myisam_repair_threads = FALSE;
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_09----------------------#'
|
||||
###############################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
###############################################################################
|
||||
|
||||
SET @@global.myisam_repair_threads = 10;
|
||||
SELECT @@myisam_repair_threads = @@global.myisam_repair_threads ;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to
|
||||
# same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@myisam_repair_threads = 100;
|
||||
SELECT @@myisam_repair_threads = @@local.myisam_repair_threads ;
|
||||
SELECT @@local.myisam_repair_threads = @@session.myisam_repair_threads ;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_11----------------------#'
|
||||
###################################################################################
|
||||
# Check if myisam_repair_threads can be accessed with and without @@ sign #
|
||||
###################################################################################
|
||||
|
||||
SET myisam_repair_threads = 1;
|
||||
SELECT @@myisam_repair_threads ;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
|
||||
SELECT local.myisam_repair_threads ;
|
||||
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.myisam_repair_threads ;
|
||||
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT myisam_repair_threads = @@session.myisam_repair_threads ;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.myisam_repair_threads = @start_global_value;
|
||||
SELECT @@global.myisam_repair_threads ;
|
||||
SET @@session.myisam_repair_threads = @start_session_value;
|
||||
SELECT @@session.myisam_repair_threads ;
|
||||
|
||||
|
||||
#############################################################
|
||||
# END OF myisam_repair_threads TESTS #
|
||||
#############################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/myisam_repair_threads_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/myisam_repair_threads_basic.inc
|
||||
|
||||
247
mysql-test/suite/sys_vars/t/myisam_sort_buffer_size_basic.test
Normal file
247
mysql-test/suite/sys_vars/t/myisam_sort_buffer_size_basic.test
Normal file
@@ -0,0 +1,247 @@
|
||||
############## mysql-test\t\myisam_sort_buffer_size_basic.test ###############
|
||||
# #
|
||||
# Variable Name: myisam_sort_buffer_size #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: #
|
||||
# Range: #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable myisam_sort_buffer_size #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF myisam_sort_buffer_size TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.myisam_sort_buffer_size ;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.myisam_sort_buffer_size ;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_01-------------------------#'
|
||||
########################################################################
|
||||
# Display the DEFAULT value of myisam_block_size #
|
||||
########################################################################
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = 100;
|
||||
SET @@global.myisam_sort_buffer_size = DEFAULT;
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
SET @@session.myisam_sort_buffer_size = 200;
|
||||
SET @@session.myisam_sort_buffer_size = DEFAULT;
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_02-------------------------#'
|
||||
########################################################################
|
||||
# Check the DEFAULT value of myisam_sort_buffer_size #
|
||||
########################################################################
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = DEFAULT;
|
||||
SELECT @@global.myisam_sort_buffer_size = 8388608;
|
||||
|
||||
SET @@session.myisam_sort_buffer_size = DEFAULT;
|
||||
SELECT @@session.myisam_sort_buffer_size = 8388608;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_03-------------------------#'
|
||||
##################################################################################
|
||||
# Change the value of myisam_sort_buffer_size to a valid value for GLOBAL Scope #
|
||||
##################################################################################
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = 4;
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = 4294967295;
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = 655354;
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_04-------------------------#'
|
||||
###################################################################################
|
||||
# Change the value of myisam_sort_buffer_size to a valid value for SESSION Scope #
|
||||
###################################################################################
|
||||
|
||||
SET @@session.myisam_sort_buffer_size = 4;
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
SET @@session.myisam_sort_buffer_size = 4294967295;
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
SET @@session.myisam_sort_buffer_size = 655345;
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_05-----------------------#'
|
||||
####################################################################
|
||||
# Change the value of myisam_sort_buffer_size to an invalid value #
|
||||
####################################################################
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = 0;
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = -1024;
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
--disable_warnings
|
||||
SET @@global.myisam_sort_buffer_size = 429496729533;
|
||||
--enable_warnings
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_sort_buffer_size = 65530.34;
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_sort_buffer_size = test;
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_sort_buffer_size = "test";
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_sort_buffer_size = 'test';
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.myisam_sort_buffer_size = ON;
|
||||
--replace_result 429496729533 4294967295
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
SET @@session.myisam_sort_buffer_size = 0;
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
SET @@session.myisam_sort_buffer_size = -2;
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.myisam_sort_buffer_size = 65530.34;
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.myisam_sort_buffer_size = test;
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.myisam_sort_buffer_size = "test";
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.myisam_sort_buffer_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='myisam_sort_buffer_size ';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.myisam_sort_buffer_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='myisam_sort_buffer_size ';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = TRUE;
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
SET @@global.myisam_sort_buffer_size = FALSE;
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_09----------------------#'
|
||||
####################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
####################################################################################
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = 10;
|
||||
SELECT @@myisam_sort_buffer_size = @@global.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@myisam_sort_buffer_size = 100;
|
||||
SELECT @@myisam_sort_buffer_size = @@local.myisam_sort_buffer_size ;
|
||||
SELECT @@local.myisam_sort_buffer_size = @@session.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_11----------------------#'
|
||||
###################################################################################
|
||||
# Check if myisam_sort_buffer_size can be accessed with and without @@ sign #
|
||||
###################################################################################
|
||||
|
||||
SET myisam_sort_buffer_size = 1;
|
||||
SELECT @@myisam_sort_buffer_size ;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
|
||||
SELECT local.myisam_sort_buffer_size ;
|
||||
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.myisam_sort_buffer_size ;
|
||||
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT myisam_sort_buffer_size = @@session.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.myisam_sort_buffer_size = @start_global_value;
|
||||
SELECT @@global.myisam_sort_buffer_size ;
|
||||
SET @@session.myisam_sort_buffer_size = @start_session_value;
|
||||
SELECT @@session.myisam_sort_buffer_size ;
|
||||
|
||||
|
||||
#############################################################
|
||||
# END OF myisam_sort_buffer_size TESTS #
|
||||
#############################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/myisam_sort_buffer_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/myisam_sort_buffer_size_basic.inc
|
||||
|
||||
215
mysql-test/suite/sys_vars/t/net_retry_count_basic.test
Normal file
215
mysql-test/suite/sys_vars/t/net_retry_count_basic.test
Normal file
@@ -0,0 +1,215 @@
|
||||
############## mysql-test\t\net_retry_count_basic.test ###############
|
||||
# #
|
||||
# Variable Name: net_retry_count #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value:10 #
|
||||
# Range: 1-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable net_retry_count #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
###############################################################
|
||||
# START OF net_retry_count TESTS #
|
||||
###############################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.net_retry_count;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.net_retry_count;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_111_01-------------------------#'
|
||||
###############################################################
|
||||
# Display the DEFAULT value of net_retry_count #
|
||||
###############################################################
|
||||
|
||||
SET @@global.net_retry_count = 100;
|
||||
SET @@global.net_retry_count = DEFAULT;
|
||||
SELECT @@global.net_retry_count;
|
||||
|
||||
SET @@session.net_retry_count = 200;
|
||||
SET @@session.net_retry_count = DEFAULT;
|
||||
SELECT @@session.net_retry_count;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_111_02-------------------------#'
|
||||
###############################################################
|
||||
# Check the DEFAULT value of net_retry_count #
|
||||
###############################################################
|
||||
|
||||
SET @@global.net_retry_count = DEFAULT;
|
||||
SELECT @@global.net_retry_count = 10;
|
||||
|
||||
SET @@session.net_retry_count = DEFAULT;
|
||||
SELECT @@session.net_retry_count = 10;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_111_03-------------------------#'
|
||||
#########################################################################
|
||||
# Change the value of net_retry_count to a valid value for GLOBAL Scope #
|
||||
#########################################################################
|
||||
|
||||
SET @@global.net_retry_count = 1;
|
||||
SELECT @@global.net_retry_count;
|
||||
SET @@global.net_retry_count = 2;
|
||||
SELECT @@global.net_retry_count;
|
||||
SET @@global.net_retry_count = 4294967295;
|
||||
SELECT @@global.net_retry_count;
|
||||
SET @@global.net_retry_count = 4294967294;
|
||||
SELECT @@global.net_retry_count;
|
||||
SET @@global.net_retry_count = 65536;
|
||||
SELECT @@global.net_retry_count;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_111_04-------------------------#'
|
||||
##########################################################################
|
||||
# Change the value of net_retry_count to a valid value for SESSION Scope #
|
||||
##########################################################################
|
||||
|
||||
SET @@session.net_retry_count = 1;
|
||||
SELECT @@session.net_retry_count;
|
||||
SET @@session.net_retry_count = 2;
|
||||
SELECT @@session.net_retry_count;
|
||||
SET @@session.net_retry_count = 65535;
|
||||
SELECT @@session.net_retry_count;
|
||||
SET @@session.net_retry_count = 4294967295;
|
||||
SELECT @@session.net_retry_count;
|
||||
SET @@session.net_retry_count = 4294967294;
|
||||
SELECT @@session.net_retry_count;
|
||||
|
||||
--echo '#------------------FN_DYNVARS_111_05-----------------------#'
|
||||
###########################################################
|
||||
# Change the value of net_retry_count to an invalid value #
|
||||
###########################################################
|
||||
|
||||
SET @@global.net_retry_count = 0;
|
||||
SELECT @@global.net_retry_count;
|
||||
SET @@global.net_retry_count = -1024;
|
||||
SELECT @@global.net_retry_count;
|
||||
SET @@global.net_retry_count = 4294967296;
|
||||
SELECT @@global.net_retry_count;
|
||||
SET @@global.net_retry_count = 429496729500;
|
||||
SELECT @@global.net_retry_count;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.net_retry_count = 65530.34;
|
||||
SELECT @@global.net_retry_count;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.net_retry_count = test;
|
||||
SELECT @@global.net_retry_count;
|
||||
|
||||
SET @@session.net_retry_count = 0;
|
||||
SELECT @@session.net_retry_count;
|
||||
SET @@session.net_retry_count = -2;
|
||||
SELECT @@session.net_retry_count;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.net_retry_count = 65530.34;
|
||||
SET @@session.net_retry_count = 6555015425;
|
||||
SELECT @@session.net_retry_count;
|
||||
SET @@session.net_retry_count = 4294967296;
|
||||
SELECT @@session.net_retry_count;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.net_retry_count = test;
|
||||
SELECT @@session.net_retry_count;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_111_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.net_retry_count = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='net_retry_count';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_111_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.net_retry_count = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='net_retry_count';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_111_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.net_retry_count = TRUE;
|
||||
SELECT @@global.net_retry_count;
|
||||
SET @@global.net_retry_count = FALSE;
|
||||
SELECT @@global.net_retry_count;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_111_09----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
SET @@global.net_retry_count = 10;
|
||||
SELECT @@net_retry_count = @@global.net_retry_count;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_111_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@net_retry_count = 100;
|
||||
SELECT @@net_retry_count = @@local.net_retry_count;
|
||||
SELECT @@local.net_retry_count = @@session.net_retry_count;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_111_11----------------------#'
|
||||
##########################################################################
|
||||
# Check if net_retry_count can be accessed with and without @@ sign #
|
||||
##########################################################################
|
||||
|
||||
SET net_retry_count = 1;
|
||||
SELECT @@net_retry_count;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.net_retry_count;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.net_retry_count;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT net_retry_count = @@session.net_retry_count;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.net_retry_count = @start_global_value;
|
||||
SELECT @@global.net_retry_count;
|
||||
SET @@session.net_retry_count = @start_session_value;
|
||||
SELECT @@session.net_retry_count;
|
||||
|
||||
|
||||
####################################################
|
||||
# END OF net_retry_count TESTS #
|
||||
####################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/net_retry_count_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/net_retry_count_basic.inc
|
||||
|
||||
210
mysql-test/suite/sys_vars/t/query_alloc_block_size_basic.test
Normal file
210
mysql-test/suite/sys_vars/t/query_alloc_block_size_basic.test
Normal file
@@ -0,0 +1,210 @@
|
||||
############## mysql-test\t\query_alloc_block_size_basic.test ###############
|
||||
# #
|
||||
# Variable Name: query_alloc_block_size #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 8192 #
|
||||
# Range: 1024-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable query_alloc_block_size #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
###################################################################
|
||||
# START OF query_alloc_block_size TESTS #
|
||||
###################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.query_alloc_block_size;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.query_alloc_block_size;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_130_01-------------------------#'
|
||||
###################################################################
|
||||
# Display the DEFAULT value of query_alloc_block_size #
|
||||
###################################################################
|
||||
|
||||
SET @@global.query_alloc_block_size = 10000;
|
||||
SET @@global.query_alloc_block_size = DEFAULT;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
|
||||
SET @@session.query_alloc_block_size = 20000;
|
||||
SET @@session.query_alloc_block_size = DEFAULT;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_130_02-------------------------#'
|
||||
###################################################################
|
||||
# Check the DEFAULT value of query_alloc_block_size #
|
||||
###################################################################
|
||||
|
||||
SET @@global.query_alloc_block_size = DEFAULT;
|
||||
SELECT @@global.query_alloc_block_size = 8192;
|
||||
|
||||
SET @@session.query_alloc_block_size = DEFAULT;
|
||||
SELECT @@session.query_alloc_block_size = 8192;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_130_03-------------------------#'
|
||||
#############################################################################
|
||||
# Change the value of query_alloc_block_size to a valid value for GLOBAL Scope #
|
||||
#############################################################################
|
||||
|
||||
SET @@global.query_alloc_block_size = 1024;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = 1025;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = 65536;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_130_04-------------------------#'
|
||||
#################################################################################
|
||||
# Change the value of query_alloc_block_size to a valid value for SESSION Scope #
|
||||
#################################################################################
|
||||
|
||||
SET @@session.query_alloc_block_size = 1024;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
SET @@session.query_alloc_block_size = 1025;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
SET @@session.query_alloc_block_size = 655536;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
|
||||
--echo '#------------------FN_DYNVARS_130_05-----------------------#'
|
||||
##################################################################
|
||||
# Change the value of query_alloc_block_size to an invalid value #
|
||||
##################################################################
|
||||
|
||||
SET @@global.query_alloc_block_size = 64;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = -1;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = 1023;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_alloc_block_size = 65530.34;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_alloc_block_size = test;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
|
||||
SET @@session.query_alloc_block_size = 64;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
SET @@session.query_alloc_block_size = -2;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.query_alloc_block_size = 65530.34;
|
||||
SET @@session.query_alloc_block_size = 1023;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
#SET @@session.query_alloc_block_size = 4294967296;
|
||||
#SELECT @@session.query_alloc_block_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.query_alloc_block_size = test;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
|
||||
--echo '#------------------FN_DYNVARS_130_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
#SET @@global.query_alloc_block_size = 1;
|
||||
#SET @@session.query_alloc_block_size = 12;
|
||||
|
||||
SET @@global.query_alloc_block_size = 1;
|
||||
SET @@session.query_alloc_block_size = 12;
|
||||
|
||||
SELECT @@global.query_alloc_block_size =
|
||||
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='query_alloc_block_size';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_130_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.query_alloc_block_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='query_alloc_block_size';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_130_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.query_alloc_block_size = TRUE;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@global.query_alloc_block_size = FALSE;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_130_09----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
SET @@global.query_alloc_block_size = 2048;
|
||||
SELECT @@query_alloc_block_size = @@global.query_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_130_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@query_alloc_block_size = 5000;
|
||||
SELECT @@query_alloc_block_size = @@local.query_alloc_block_size;
|
||||
SELECT @@local.query_alloc_block_size = @@session.query_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_130_11----------------------#'
|
||||
##############################################################################
|
||||
# Check if query_alloc_block_size can be accessed with and without @@ sign #
|
||||
##############################################################################
|
||||
|
||||
SET query_alloc_block_size = 1024;
|
||||
SELECT @@query_alloc_block_size;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.query_alloc_block_size;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.query_alloc_block_size;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT query_alloc_block_size = @@session.query_alloc_block_size;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.query_alloc_block_size = @start_global_value;
|
||||
SELECT @@global.query_alloc_block_size;
|
||||
SET @@session.query_alloc_block_size = @start_session_value;
|
||||
SELECT @@session.query_alloc_block_size;
|
||||
|
||||
|
||||
########################################################
|
||||
# END OF query_alloc_block_size TESTS #
|
||||
########################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/query_alloc_block_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/query_alloc_block_size_basic.inc
|
||||
|
||||
177
mysql-test/suite/sys_vars/t/query_cache_limit_basic.test
Normal file
177
mysql-test/suite/sys_vars/t/query_cache_limit_basic.test
Normal file
@@ -0,0 +1,177 @@
|
||||
############## mysql-test\t\query_cache_limit_basic.test ###############
|
||||
# #
|
||||
# Variable Name: query_cache_limit #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 1048576 #
|
||||
# Min value: 0 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable query_cache_limit #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/have_query_cache.inc
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF query_cache_limit TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
########################################################################
|
||||
# Saving initial value of query_cache_limit in a temporary variable #
|
||||
########################################################################
|
||||
|
||||
SET @start_value = @@global.query_cache_limit;
|
||||
SELECT @start_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_131_01------------------------#'
|
||||
########################################################################
|
||||
# Display the DEFAULT value of query_cache_limit #
|
||||
########################################################################
|
||||
|
||||
SET @@global.query_cache_limit = 99;
|
||||
SET @@global.query_cache_limit = DEFAULT;
|
||||
SELECT @@global.query_cache_limit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_131_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.query_cache_limit = @start_value;
|
||||
SELECT @@global.query_cache_limit = 1048576;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_131_03------------------------#'
|
||||
########################################################################
|
||||
# Change the value of query_cache_limit to a valid value #
|
||||
########################################################################
|
||||
|
||||
SET @@global.query_cache_limit = 0;
|
||||
SELECT @@global.query_cache_limit;
|
||||
SET @@global.query_cache_limit = 1;
|
||||
SELECT @@global.query_cache_limit;
|
||||
SET @@global.query_cache_limit = 1048576;
|
||||
SELECT @@global.query_cache_limit;
|
||||
SET @@global.query_cache_limit = 1048575;
|
||||
SELECT @@global.query_cache_limit;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_131_04-------------------------#'
|
||||
###########################################################################
|
||||
# Change the value of query_cache_limit to invalid value #
|
||||
###########################################################################
|
||||
|
||||
SET @@global.query_cache_limit = -1;
|
||||
SELECT @@global.query_cache_limit;
|
||||
SET @@global.query_cache_limit = 4294967296;
|
||||
SELECT @@global.query_cache_limit;
|
||||
SET @@global.query_cache_limit = 10240022115;
|
||||
SELECT @@global.query_cache_limit;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_cache_limit = 10000.01;
|
||||
SELECT @@global.query_cache_limit;
|
||||
SET @@global.query_cache_limit = -1024;
|
||||
SELECT @@global.query_cache_limit;
|
||||
SET @@global.query_cache_limit = 42949672950;
|
||||
SELECT @@global.query_cache_limit;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_cache_limit = ON;
|
||||
SELECT @@global.query_cache_limit;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_cache_limit = 'test';
|
||||
SELECT @@global.query_cache_limit;
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_131_05----------------------------#'
|
||||
###########################################################################
|
||||
# Test if accessing session query_cache_limit gives error #
|
||||
###########################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.query_cache_limit = 0;
|
||||
SELECT @@query_cache_limit;
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_131_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL & SESSION Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.query_cache_limit = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='query_cache_limit';
|
||||
|
||||
SELECT @@query_cache_limit = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='query_cache_limit';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_131_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.query_cache_limit = TRUE;
|
||||
SELECT @@global.query_cache_limit;
|
||||
SET @@global.query_cache_limit = FALSE;
|
||||
SELECT @@global.query_cache_limit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_131_08----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@global.query_cache_limit = 1;
|
||||
SELECT @@query_cache_limit = @@global.query_cache_limit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_131_09----------------------#'
|
||||
##########################################################################
|
||||
# Check if query_cache_limit can be accessed with and without @@ sign #
|
||||
##########################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET query_cache_limit = 1;
|
||||
SELECT @@query_cache_limit;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET local.query_cache_limit = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.query_cache_limit;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.query_cache_limit = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.query_cache_limit;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT query_cache_limit = @@session.query_cache_limit;
|
||||
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.query_cache_limit = @start_value;
|
||||
SELECT @@global.query_cache_limit;
|
||||
|
||||
|
||||
########################################################################
|
||||
# END OF query_cache_limit TESTS #
|
||||
########################################################################
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/query_cache_limit_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/query_cache_limit_basic.inc
|
||||
|
||||
184
mysql-test/suite/sys_vars/t/query_cache_min_res_unit_basic.test
Normal file
184
mysql-test/suite/sys_vars/t/query_cache_min_res_unit_basic.test
Normal file
@@ -0,0 +1,184 @@
|
||||
############## mysql-test\t\query_cache_min_res_unit_basic.test ###############
|
||||
# #
|
||||
# Variable Name: query_cache_min_res_unit #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value:1024 #
|
||||
# Min Value:0 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman Rawala #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable query_cache_min_res_unit #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/have_query_cache.inc
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
|
||||
|
||||
########################################################################
|
||||
# START OF query_cache_min_res_unit TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Saving initial value of query_cache_min_res_unit in a temporary variable #
|
||||
###############################################################################
|
||||
|
||||
SET @start_value = @@global.query_cache_min_res_unit;
|
||||
SELECT @start_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_132_01------------------------#'
|
||||
###############################################################################
|
||||
# Display the DEFAULT value of query_cache_min_res_unit #
|
||||
###############################################################################
|
||||
|
||||
SET @@global.query_cache_min_res_unit = 99;
|
||||
SET @@global.query_cache_min_res_unit = DEFAULT;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_132_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.query_cache_min_res_unit = @start_value;
|
||||
SELECT @@global.query_cache_min_res_unit = 4096;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_132_03------------------------#'
|
||||
################################################################################
|
||||
# Change the value of query_cache_min_res_unit to a valid value #
|
||||
################################################################################
|
||||
|
||||
SET @@global.query_cache_min_res_unit = 0;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = 1;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = 512;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = 513;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = 1048576;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = 1048575;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_132_04-------------------------#'
|
||||
###################################################################################
|
||||
# Change the value of query_cache_min_res_unit to invalid value #
|
||||
###################################################################################
|
||||
|
||||
SET @@global.query_cache_min_res_unit = -1;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = 4294967296;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = 511;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_cache_min_res_unit = 10000.01;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = -1024;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = 42949672950;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_cache_min_res_unit = ON;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_cache_min_res_unit = 'test';
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_132_05----------------------------#'
|
||||
###################################################################################
|
||||
# Test if accessing session query_cache_min_res_unit gives error #
|
||||
###################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.query_cache_min_res_unit = 0;
|
||||
SELECT @@query_cache_min_res_unit;
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_132_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL & SESSION Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.query_cache_min_res_unit = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='query_cache_min_res_unit';
|
||||
|
||||
SELECT @@query_cache_min_res_unit = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='query_cache_min_res_unit';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_132_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.query_cache_min_res_unit = TRUE;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
SET @@global.query_cache_min_res_unit = FALSE;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_132_08----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@global.query_cache_min_res_unit = 1;
|
||||
SELECT @@query_cache_min_res_unit = @@global.query_cache_min_res_unit;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_132_09----------------------#'
|
||||
##################################################################################
|
||||
# Check if query_cache_min_res_unit can be accessed with and without @@ sign #
|
||||
##################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET query_cache_min_res_unit = 1;
|
||||
SELECT @@query_cache_min_res_unit;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET local.query_cache_min_res_unit = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.query_cache_min_res_unit;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.query_cache_min_res_unit = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.query_cache_min_res_unit;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT query_cache_min_res_unit = @@session.query_cache_min_res_unit;
|
||||
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.query_cache_min_res_unit = @start_value;
|
||||
SELECT @@global.query_cache_min_res_unit;
|
||||
|
||||
|
||||
########################################################################
|
||||
# END OF query_cache_min_res_unit TESTS #
|
||||
########################################################################
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/query_cache_min_res_unit_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/query_cache_min_res_unit_basic.inc
|
||||
|
||||
165
mysql-test/suite/sys_vars/t/query_cache_size_basic.test
Normal file
165
mysql-test/suite/sys_vars/t/query_cache_size_basic.test
Normal file
@@ -0,0 +1,165 @@
|
||||
############## mysql-test\t\query_cache_size_basic.test ###############
|
||||
# #
|
||||
# Variable Name: query_cache_size #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 0 #
|
||||
# Range: - #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable query_cache_size #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/have_query_cache.inc
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF query_cache_size TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Saving initial value of query_cache_size in a temporary variable #
|
||||
###############################################################################
|
||||
|
||||
SET @start_value = @@global.query_cache_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_133_01------------------------#'
|
||||
###############################################################################
|
||||
# Display the DEFAULT value of query_cache_size #
|
||||
###############################################################################
|
||||
|
||||
SET @@global.query_cache_size = 99;
|
||||
SET @@global.query_cache_size = DEFAULT;
|
||||
SELECT @@global.query_cache_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_133_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.query_cache_size = @start_value;
|
||||
SELECT @@global.query_cache_size = @start_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_133_03------------------------#'
|
||||
################################################################################
|
||||
# Change the value of query_cache_size to a valid value #
|
||||
################################################################################
|
||||
|
||||
SET @@global.query_cache_size = 0;
|
||||
SELECT @@global.query_cache_size;
|
||||
SET @@global.query_cache_size = 1;
|
||||
SELECT @@global.query_cache_size;
|
||||
|
||||
SET @@global.query_cache_size = 512;
|
||||
SELECT @@global.query_cache_size;
|
||||
SET @@global.query_cache_size = 1024;
|
||||
SELECT @@global.query_cache_size;
|
||||
SET @@global.query_cache_size = 1048576;
|
||||
SELECT @@global.query_cache_size;
|
||||
SET @@global.query_cache_size = 1048575;
|
||||
SELECT @@global.query_cache_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_133_04-------------------------#'
|
||||
###################################################################################
|
||||
# Change the value of query_cache_size to invalid value #
|
||||
###################################################################################
|
||||
|
||||
SET @@global.query_cache_size = -1;
|
||||
SELECT @@global.query_cache_size;
|
||||
SET @@global.query_cache_size = 511;
|
||||
SELECT @@global.query_cache_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_cache_size = 10000.01;
|
||||
SELECT @@global.query_cache_size;
|
||||
SET @@global.query_cache_size = -1024;
|
||||
SELECT @@global.query_cache_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_cache_size = ON;
|
||||
SELECT @@global.query_cache_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.query_cache_size = 'test';
|
||||
SELECT @@global.query_cache_size;
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_133_05----------------------------#'
|
||||
###################################################################################
|
||||
# Test if accessing session query_cache_size gives error #
|
||||
###################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.query_cache_size = 0;
|
||||
SELECT @@query_cache_size;
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_133_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL & SESSION Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.query_cache_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='query_cache_size';
|
||||
|
||||
SELECT @@query_cache_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='query_cache_size';
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_133_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.query_cache_size = TRUE;
|
||||
SELECT @@global.query_cache_size;
|
||||
SET @@global.query_cache_size = FALSE;
|
||||
SELECT @@global.query_cache_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_133_08----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@global.query_cache_size = 1;
|
||||
SELECT @@query_cache_size = @@global.query_cache_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_133_09----------------------#'
|
||||
##################################################################################
|
||||
# Check if query_cache_size can be accessed with and without @@ sign #
|
||||
##################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET query_cache_size = 1;
|
||||
SELECT @@query_cache_size;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET local.query_cache_size = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.query_cache_size;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.query_cache_size = 1;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.query_cache_size;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT query_cache_size = @@session.query_cache_size;
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.query_cache_size = @start_value;
|
||||
|
||||
########################################################################
|
||||
# END OF query_cache_size TESTS #
|
||||
########################################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/query_cache_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/query_cache_size_basic.inc
|
||||
|
||||
205
mysql-test/suite/sys_vars/t/range_alloc_block_size_basic.test
Normal file
205
mysql-test/suite/sys_vars/t/range_alloc_block_size_basic.test
Normal file
@@ -0,0 +1,205 @@
|
||||
############## mysql-test\t\range_alloc_block_size_basic.test ###############
|
||||
# #
|
||||
# Variable Name: range_alloc_block_size #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value:2048 #
|
||||
# Max value: 4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable range_alloc_block_size #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
######################################################################
|
||||
# START OF range_alloc_block_size TESTS #
|
||||
######################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.range_alloc_block_size;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.range_alloc_block_size;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_137_01-------------------------#'
|
||||
######################################################################
|
||||
# Display the DEFAULT value of range_alloc_block_size #
|
||||
######################################################################
|
||||
|
||||
SET @@global.range_alloc_block_size = 100;
|
||||
SET @@global.range_alloc_block_size = DEFAULT;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
|
||||
SET @@session.range_alloc_block_size = 200;
|
||||
SET @@session.range_alloc_block_size = DEFAULT;
|
||||
SELECT @@session.range_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_137_02-------------------------#'
|
||||
######################################################################
|
||||
# Check the DEFAULT value of range_alloc_block_size #
|
||||
######################################################################
|
||||
|
||||
SET @@global.range_alloc_block_size = DEFAULT;
|
||||
SELECT @@global.range_alloc_block_size = 2048;
|
||||
|
||||
SET @@session.range_alloc_block_size = DEFAULT;
|
||||
SELECT @@session.range_alloc_block_size = 2048;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_137_03-------------------------#'
|
||||
################################################################################
|
||||
# Change the value of range_alloc_block_size to a valid value for GLOBAL Scope #
|
||||
################################################################################
|
||||
|
||||
SET @@global.range_alloc_block_size = 2048;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
SET @@global.range_alloc_block_size = 4294967295;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
SET @@global.range_alloc_block_size = 4294967294;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_137_04-------------------------#'
|
||||
###################################################################################
|
||||
# Change the value of range_alloc_block_size to a valid value for SESSION Scope #
|
||||
###################################################################################
|
||||
|
||||
SET @@session.range_alloc_block_size = 2048;
|
||||
SELECT @@session.range_alloc_block_size;
|
||||
SET @@session.range_alloc_block_size = 4294967295;
|
||||
SELECT @@session.range_alloc_block_size;
|
||||
SET @@session.range_alloc_block_size = 4294967294;
|
||||
SELECT @@session.range_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_137_05-----------------------#'
|
||||
##################################################################
|
||||
# Change the value of range_alloc_block_size to an invalid value #
|
||||
##################################################################
|
||||
|
||||
SET @@global.range_alloc_block_size = 0;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
SET @@global.range_alloc_block_size = -1024;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
SET @@global.range_alloc_block_size = 42949672951;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.range_alloc_block_size = 65530.34;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.range_alloc_block_size = test;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
|
||||
SET @@session.range_alloc_block_size = 0;
|
||||
SELECT @@session.range_alloc_block_size;
|
||||
SET @@session.range_alloc_block_size = -2;
|
||||
SELECT @@session.range_alloc_block_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.range_alloc_block_size = 65530.34;
|
||||
SET @@session.range_alloc_block_size = 4294967296;
|
||||
SELECT @@session.range_alloc_block_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.range_alloc_block_size = test;
|
||||
SELECT @@session.range_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_137_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.range_alloc_block_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='range_alloc_block_size';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_137_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.range_alloc_block_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='range_alloc_block_size';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_137_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.range_alloc_block_size = TRUE;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
SET @@global.range_alloc_block_size = FALSE;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_137_09----------------------#'
|
||||
####################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
####################################################################################
|
||||
|
||||
SET @@global.range_alloc_block_size = 10;
|
||||
SELECT @@range_alloc_block_size = @@global.range_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_137_10----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@range_alloc_block_size = 100;
|
||||
SELECT @@range_alloc_block_size = @@local.range_alloc_block_size;
|
||||
SELECT @@local.range_alloc_block_size = @@session.range_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_137_11----------------------#'
|
||||
###################################################################################
|
||||
# Check if range_alloc_block_size can be accessed with and without @@ sign #
|
||||
###################################################################################
|
||||
|
||||
SET range_alloc_block_size = 1;
|
||||
SELECT @@range_alloc_block_size;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.range_alloc_block_size;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.range_alloc_block_size;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT range_alloc_block_size = @@session.range_alloc_block_size;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.range_alloc_block_size = @start_global_value;
|
||||
SELECT @@global.range_alloc_block_size;
|
||||
SET @@session.range_alloc_block_size = @start_session_value;
|
||||
SELECT @@session.range_alloc_block_size;
|
||||
|
||||
|
||||
#############################################################
|
||||
# END OF range_alloc_block_size TESTS #
|
||||
#############################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/range_alloc_block_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/range_alloc_block_size_basic.inc
|
||||
|
||||
180
mysql-test/suite/sys_vars/t/rpl_recovery_rank_basic.test
Normal file
180
mysql-test/suite/sys_vars/t/rpl_recovery_rank_basic.test
Normal file
@@ -0,0 +1,180 @@
|
||||
############## mysql-test\t\rpl_recovery_rank_basic.test #######################
|
||||
# #
|
||||
# Variable Name: rpl_recovery_rank #
|
||||
# Scope: GLOBAL & SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: Numeric #
|
||||
# Default Value: 1 #
|
||||
# Range: 1 - 65536 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan Maredia #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable rpl_recovery_rank #
|
||||
# that checks the behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
###################################################################
|
||||
# START OF rpl_recovery_rank TESTS #
|
||||
###################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.rpl_recovery_rank;
|
||||
SELECT @start_global_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_142_01-------------------------#'
|
||||
###################################################################
|
||||
# Check the DEFAULT value of rpl_recovery_rank #
|
||||
###################################################################
|
||||
|
||||
SET @@global.rpl_recovery_rank = 500000;
|
||||
SET @@global.rpl_recovery_rank = DEFAULT;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_142_02-------------------------#'
|
||||
##################################################################################
|
||||
# Change the value of rpl_recovery_rank to a valid value for GLOBAL Scope #
|
||||
##################################################################################
|
||||
|
||||
SET @@global.rpl_recovery_rank = 0;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
SET @@global.rpl_recovery_rank = 1024;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
SET @@global.rpl_recovery_rank = 123456789;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
|
||||
--disable_warnings
|
||||
SET @@global.rpl_recovery_rank = 2147483648*2;
|
||||
--enable_warnings
|
||||
--replace_result 4294967296 4294967295
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
--disable_warnings
|
||||
SET @@global.rpl_recovery_rank = 2147483648*1024;
|
||||
--enable_warnings
|
||||
--replace_result 2199023255552 4294967295
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
--disable_warnings
|
||||
SET @@global.rpl_recovery_rank = 2147483648*2147483648;
|
||||
--enable_warnings
|
||||
--replace_result 4611686018427387904 4294967295
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_142_03-------------------------#'
|
||||
#################################################################################
|
||||
# Check if variable can be access with session scope #
|
||||
#################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@rpl_recovery_rank = 2;
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.rpl_recovery_rank = 3;
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@local.rpl_recovery_rank = 4;
|
||||
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_142_04-----------------------#'
|
||||
####################################################################
|
||||
# Change the value of rpl_recovery_rank to an invalid value #
|
||||
####################################################################
|
||||
|
||||
SET @@global.rpl_recovery_rank = -1;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
SET @@global.rpl_recovery_rank = -2147483648;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
SET @@global.rpl_recovery_rank = -2147483649;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.rpl_recovery_rank = 65530.34;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.rpl_recovery_rank = 2147483649.56;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.rpl_recovery_rank = 1G;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_142_05-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.rpl_recovery_rank = 3000;
|
||||
SELECT @@global.rpl_recovery_rank = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='rpl_recovery_rank';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_142_06-----------------------#'
|
||||
###########################################################################
|
||||
# Check if the value is present in INFORMATION_SCHEMA.SESSION_VARIABLES #
|
||||
###########################################################################
|
||||
|
||||
SELECT count(VARIABLE_VALUE)
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='rpl_recovery_rank';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_142_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.rpl_recovery_rank = TRUE;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
SET @@global.rpl_recovery_rank = FALSE;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_08----------------------#'
|
||||
#################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
#################################################################################
|
||||
|
||||
|
||||
SET @@global.rpl_recovery_rank = 512;
|
||||
SELECT @@rpl_recovery_rank = @@global.rpl_recovery_rank;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_09----------------------#'
|
||||
##################################################################################
|
||||
# Check if rpl_recovery_rank can be accessed without @@ sign and scope #
|
||||
##################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET rpl_recovery_rank = 2048;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT rpl_recovery_rank;
|
||||
|
||||
SELECT @@rpl_recovery_rank;
|
||||
|
||||
#verifying another another syntax for setting value
|
||||
SET global rpl_recovery_rank = 64;
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.rpl_recovery_rank = @start_global_value;
|
||||
SELECT @@global.rpl_recovery_rank;
|
||||
|
||||
########################################################
|
||||
# END OF rpl_recovery_rank TESTS #
|
||||
########################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/rpl_recovery_rank_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/rpl_recovery_rank_basic.inc
|
||||
|
||||
187
mysql-test/suite/sys_vars/t/slave_transaction_retries_basic.test
Normal file
187
mysql-test/suite/sys_vars/t/slave_transaction_retries_basic.test
Normal file
@@ -0,0 +1,187 @@
|
||||
############# mysql-test\t\slave_transaction_retries_basic.test ###############
|
||||
# #
|
||||
# Variable Name: slave_transaction_retries #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 10 #
|
||||
# Range: #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable slave_transaction_retries#
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/not_embedded.inc
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
###################################################################
|
||||
# START OF slave_transaction_retries TESTS #
|
||||
###################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.slave_transaction_retries;
|
||||
SELECT @start_global_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_149_01-------------------------#'
|
||||
###################################################################
|
||||
# Display the DEFAULT value of slave_transaction_retries #
|
||||
###################################################################
|
||||
|
||||
SET @@global.slave_transaction_retries = 50;
|
||||
SET @@global.slave_transaction_retries = DEFAULT;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_149_02-------------------------#'
|
||||
###################################################################
|
||||
# Check the DEFAULT value of slave_transaction_retries #
|
||||
###################################################################
|
||||
|
||||
SET @@global.slave_transaction_retries = DEFAULT;
|
||||
SELECT @@global.slave_transaction_retries = 10;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_149_03-------------------------#'
|
||||
################################################################################
|
||||
# Change the value of slave_transaction_retries to a valid value for
|
||||
# GLOBAL Scope
|
||||
################################################################################
|
||||
|
||||
SET @@global.slave_transaction_retries = 0;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
SET @@global.slave_transaction_retries = 1;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
SET @@global.slave_transaction_retries = 15;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
SET @@global.slave_transaction_retries = 1024;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
SET @@global.slave_transaction_retries = 2147483648;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
SET @@global.slave_transaction_retries = 2147483648*2-1;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
SET @@global.slave_transaction_retries = 2147483649*2;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
SET @@global.slave_transaction_retries = 4294967295;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_149_04-------------------------#'
|
||||
###############################################################################
|
||||
# Check if variable can be access with session scope #
|
||||
###############################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@slave_transaction_retries = 2;
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.slave_transaction_retries = 3;
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@local.slave_transaction_retries = 4;
|
||||
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_149_05-----------------------#'
|
||||
####################################################################
|
||||
# Change the value of slave_transaction_retries to an invalid value#
|
||||
####################################################################
|
||||
|
||||
SET @@global.slave_transaction_retries = -1;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
|
||||
SET @@global.slave_transaction_retries = 2147483649*2147483649;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.slave_transaction_retries = 65530.34;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.slave_transaction_retries = '100';
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.slave_transaction_retries = 7483649.56;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.slave_transaction_retries = ON;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.slave_transaction_retries = OFF;
|
||||
|
||||
--echo '#------------------FN_DYNVARS_149_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.slave_transaction_retries = 3000;
|
||||
SELECT @@global.slave_transaction_retries = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='slave_transaction_retries';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_149_07-----------------------#'
|
||||
###########################################################################
|
||||
# Check if the value is present in INFORMATION_SCHEMA.SESSION_VARIABLES #
|
||||
###########################################################################
|
||||
|
||||
SELECT count(VARIABLE_VALUE)
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='slave_transaction_retries';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_149_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.slave_transaction_retries = TRUE;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
SET @@global.slave_transaction_retries = FALSE;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_149_09----------------------#'
|
||||
###############################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
###############################################################################
|
||||
|
||||
|
||||
SET @@global.slave_transaction_retries = 60*60;
|
||||
SELECT @@slave_transaction_retries = @@global.slave_transaction_retries;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_149_10----------------------#'
|
||||
###############################################################################
|
||||
# Check if slave_transaction_retries can be accessed without @@ sign
|
||||
# and scope
|
||||
###############################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET slave_transaction_retries = 2048;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT slave_transaction_retries;
|
||||
|
||||
SELECT @@slave_transaction_retries;
|
||||
|
||||
#verifying another another syntax for setting value
|
||||
SET global slave_transaction_retries = 99;
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.slave_transaction_retries = @start_global_value;
|
||||
SELECT @@global.slave_transaction_retries;
|
||||
|
||||
########################################################
|
||||
# END OF slave_transaction_retries TESTS #
|
||||
########################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/slave_transaction_retries_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/slave_transaction_retries_basic.inc
|
||||
|
||||
221
mysql-test/suite/sys_vars/t/sort_buffer_size_basic.test
Normal file
221
mysql-test/suite/sys_vars/t/sort_buffer_size_basic.test
Normal file
@@ -0,0 +1,221 @@
|
||||
############## mysql-test\t\sort_buffer_size_basic.test #######################
|
||||
# #
|
||||
# Variable Name: sort_buffer_size #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 2097144 #
|
||||
# Range:max value:4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable sort_buffer_size #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * 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/server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
|
||||
|
||||
######################################################################
|
||||
# START OF sort_buffer_size TESTS #
|
||||
######################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
--disable_warnings
|
||||
|
||||
SET @start_global_value = @@global.sort_buffer_size;
|
||||
SET @start_session_value = @@session.sort_buffer_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_151_01-------------------------#'
|
||||
######################################################################
|
||||
# Display the DEFAULT value of sort_buffer_size #
|
||||
######################################################################
|
||||
|
||||
SET @@global.sort_buffer_size = 1000;
|
||||
SET @@global.sort_buffer_size = DEFAULT;
|
||||
eval
|
||||
SELECT @@global.sort_buffer_size;
|
||||
|
||||
SET @@session.sort_buffer_size = 2000;
|
||||
SET @@session.sort_buffer_size = DEFAULT;
|
||||
eval
|
||||
SELECT @@session.sort_buffer_size;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_151_02-------------------------#'
|
||||
######################################################################
|
||||
# Check the DEFAULT value of sort_buffer_size #
|
||||
######################################################################
|
||||
|
||||
SET @@global.sort_buffer_size = DEFAULT;
|
||||
eval
|
||||
SELECT @@global.sort_buffer_size;
|
||||
|
||||
SET @@session.sort_buffer_size = DEFAULT;
|
||||
eval
|
||||
SELECT @@session.sort_buffer_size;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_151_03-------------------------#'
|
||||
################################################################################
|
||||
# Change the value of sort_buffer_size to a valid value for GLOBAL Scope #
|
||||
################################################################################
|
||||
|
||||
SET @@global.sort_buffer_size = 32776;
|
||||
eval
|
||||
SELECT @@global.sort_buffer_size;
|
||||
SET @@global.sort_buffer_size = 32777;
|
||||
eval
|
||||
SELECT @@global.sort_buffer_size;
|
||||
SET @@global.sort_buffer_size = 4294967295;
|
||||
SELECT @@global.sort_buffer_size;
|
||||
SET @@global.sort_buffer_size = 4294967294;
|
||||
SELECT @@global.sort_buffer_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_151_04-------------------------#'
|
||||
###################################################################################
|
||||
# Change the value of sort_buffer_size to a valid value for SESSION Scope #
|
||||
###################################################################################
|
||||
|
||||
SET @@session.sort_buffer_size = 32776;
|
||||
eval
|
||||
SELECT @@session.sort_buffer_size;
|
||||
SET @@session.sort_buffer_size = 32777;
|
||||
eval
|
||||
SELECT @@session.sort_buffer_size;
|
||||
SET @@session.sort_buffer_size = 4294967295;
|
||||
SELECT @@session.sort_buffer_size;
|
||||
SET @@session.sort_buffer_size = 4294967294;
|
||||
SELECT @@session.sort_buffer_size;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_151_05-----------------------#'
|
||||
##################################################################
|
||||
# Change the value of sort_buffer_size to an invalid value #
|
||||
##################################################################
|
||||
|
||||
SET @@global.sort_buffer_size = 32775;
|
||||
eval
|
||||
SELECT @@global.sort_buffer_size;
|
||||
SET @@global.sort_buffer_size = -1024;
|
||||
eval
|
||||
SELECT @@global.sort_buffer_size;
|
||||
SET @@global.sort_buffer_size = 4294967296;
|
||||
SELECT @@global.sort_buffer_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.sort_buffer_size = 65530.34;
|
||||
SELECT @@global.sort_buffer_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.sort_buffer_size = test;
|
||||
SELECT @@global.sort_buffer_size;
|
||||
|
||||
SET @@session.sort_buffer_size = 32775;
|
||||
eval
|
||||
SELECT @@session.sort_buffer_size;
|
||||
SET @@session.sort_buffer_size = -2;
|
||||
eval
|
||||
SELECT @@session.sort_buffer_size;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.sort_buffer_size = 65530.34;
|
||||
SET @@session.sort_buffer_size = 4294967296;
|
||||
SELECT @@session.sort_buffer_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.sort_buffer_size = test;
|
||||
|
||||
--echo '#------------------FN_DYNVARS_151_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.sort_buffer_size = VARIABLE_VALUE FROM
|
||||
INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_151_07-----------------------#'
|
||||
####################################################################
|
||||
# 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';
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_151_08-----------------------#'
|
||||
####################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
####################################################################
|
||||
|
||||
SET @@global.sort_buffer_size = TRUE;
|
||||
eval
|
||||
SELECT @@global.sort_buffer_size;
|
||||
SET @@global.sort_buffer_size = FALSE;
|
||||
eval
|
||||
SELECT @@global.sort_buffer_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_151_09----------------------#'
|
||||
####################################################################################
|
||||
# Check if accessing variable with and without GLOBAL point to same variable #
|
||||
####################################################################################
|
||||
|
||||
SET @@global.sort_buffer_size = 9000;
|
||||
SELECT @@sort_buffer_size = @@global.sort_buffer_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_151_10----------------------#'
|
||||
###################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable#
|
||||
###################################################################################################
|
||||
|
||||
SET @@sort_buffer_size = 9000;
|
||||
SELECT @@sort_buffer_size = @@local.sort_buffer_size;
|
||||
SELECT @@local.sort_buffer_size = @@session.sort_buffer_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_151_11----------------------#'
|
||||
###################################################################################
|
||||
# Check if sort_buffer_size can be accessed with and without @@ sign #
|
||||
###################################################################################
|
||||
|
||||
SET sort_buffer_size = 9100;
|
||||
eval
|
||||
SELECT @@sort_buffer_size;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.sort_buffer_size;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.sort_buffer_size;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT sort_buffer_size = @@session.sort_buffer_size;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.sort_buffer_size = @start_global_value;
|
||||
SET @@session.sort_buffer_size = @start_session_value;
|
||||
|
||||
--enable_warnings
|
||||
|
||||
#############################################################
|
||||
# END OF sort_buffer_size TESTS #
|
||||
#############################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/sort_buffer_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/sort_buffer_size_basic.inc
|
||||
|
||||
@@ -0,0 +1,234 @@
|
||||
############## mysql-test\t\transaction_alloc_block_size_basic.test ###########
|
||||
# #
|
||||
# Variable Name: transaction_alloc_block_size #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 8192 #
|
||||
# Range: 1024-4294967295 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-14 #
|
||||
# Author: Salman #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable #
|
||||
# transaction_alloc_block_size #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF transaction_alloc_block_size TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.transaction_alloc_block_size;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.transaction_alloc_block_size;
|
||||
SELECT @start_session_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_01-------------------------#'
|
||||
########################################################################
|
||||
# Display the DEFAULT value of transaction_alloc_block_size #
|
||||
########################################################################
|
||||
|
||||
SET @@global.transaction_alloc_block_size = 100;
|
||||
SET @@global.transaction_alloc_block_size = DEFAULT;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
|
||||
SET @@session.transaction_alloc_block_size = 200;
|
||||
SET @@session.transaction_alloc_block_size = DEFAULT;
|
||||
SELECT @@session.transaction_alloc_block_size;
|
||||
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_02-------------------------#'
|
||||
########################################################################
|
||||
# Check the DEFAULT value of transaction_alloc_block_size #
|
||||
########################################################################
|
||||
|
||||
SET @@global.transaction_alloc_block_size = DEFAULT;
|
||||
SELECT @@global.transaction_alloc_block_size = 8192;
|
||||
|
||||
SET @@session.transaction_alloc_block_size = DEFAULT;
|
||||
SELECT @@session.transaction_alloc_block_size = 8192;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_03-------------------------#'
|
||||
##################################################################
|
||||
# Change the value of variable to a valid value for GLOBAL Scope #
|
||||
##################################################################
|
||||
|
||||
SET @@global.transaction_alloc_block_size = 1024;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
SET @@global.transaction_alloc_block_size = 60020;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
SET @@global.transaction_alloc_block_size = 4294967295;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_04-------------------------#'
|
||||
###################################################################
|
||||
# Change the value of variable to a valid value for SESSION Scope #
|
||||
###################################################################
|
||||
|
||||
SET @@session.transaction_alloc_block_size = 1024;
|
||||
SELECT @@session.transaction_alloc_block_size;
|
||||
|
||||
SET @@session.transaction_alloc_block_size =4294967295;
|
||||
SELECT @@session.transaction_alloc_block_size;
|
||||
|
||||
SET @@session.transaction_alloc_block_size = 65535;
|
||||
SELECT @@session.transaction_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_05-----------------------#'
|
||||
########################################################################
|
||||
# Change the value of transaction_alloc_block_size to an invalid value #
|
||||
########################################################################
|
||||
|
||||
SET @@global.transaction_alloc_block_size = 0;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
SET @@global.transaction_alloc_block_size = -1024;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
|
||||
SET @@global.transaction_alloc_block_size = 123456789201;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.transaction_alloc_block_size = ON;
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.transaction_alloc_block_size = OFF;
|
||||
|
||||
|
||||
SET @@global.transaction_alloc_block_size = True;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
SET @@global.transaction_alloc_block_size = False;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.transaction_alloc_block_size = 65530.34;
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.transaction_alloc_block_size ="Test";
|
||||
|
||||
SET @@global.transaction_alloc_block_size = 1000;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
|
||||
SET @@session.transaction_alloc_block_size = 12345678901;
|
||||
SELECT @@session.transaction_alloc_block_size;
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.transaction_alloc_block_size = ON;
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.transaction_alloc_block_size = OFF;
|
||||
|
||||
SET @@session.transaction_alloc_block_size = True;
|
||||
SELECT @@session.transaction_alloc_block_size;
|
||||
|
||||
SET @@session.transaction_alloc_block_size = False;
|
||||
SELECT @@session.transaction_alloc_block_size;
|
||||
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.transaction_alloc_block_size = "Test";
|
||||
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.transaction_alloc_block_size = 'test';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.transaction_alloc_block_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='transaction_alloc_block_size';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.transaction_alloc_block_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='transaction_alloc_block_size';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_08----------------------#'
|
||||
###########################################################################
|
||||
# Check if global and session variable are independent of each other #
|
||||
###########################################################################
|
||||
|
||||
SET @@transaction_alloc_block_size = 1024;
|
||||
SET @@global.transaction_alloc_block_size = 4294967295;
|
||||
SELECT @@transaction_alloc_block_size = @@global.transaction_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_09----------------------#'
|
||||
########################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE #
|
||||
# points to same session variable #
|
||||
########################################################################
|
||||
|
||||
SET @@transaction_alloc_block_size = 100;
|
||||
SELECT @@transaction_alloc_block_size = @@local.transaction_alloc_block_size;
|
||||
SELECT @@local.transaction_alloc_block_size = @@session.transaction_alloc_block_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_10----------------------#'
|
||||
################################################################
|
||||
# Check if variable can be accessed with and without @@ sign #
|
||||
################################################################
|
||||
|
||||
SET transaction_alloc_block_size = 1027;
|
||||
SELECT @@transaction_alloc_block_size;
|
||||
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.transaction_alloc_block_size;
|
||||
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.transaction_alloc_block_size;
|
||||
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT transaction_alloc_block_size = @@session.transaction_alloc_block_size;
|
||||
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.transaction_alloc_block_size = @start_global_value;
|
||||
SELECT @@global.transaction_alloc_block_size;
|
||||
SET @@session.tmp_table_size = @start_session_value;
|
||||
SELECT @@session.transaction_alloc_block_size;
|
||||
|
||||
|
||||
#############################################################
|
||||
# END OF transaction_alloc_block_size TESTS #
|
||||
#############################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/transaction_alloc_block_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/transaction_alloc_block_size_basic.inc
|
||||
|
||||
210
mysql-test/suite/sys_vars/t/transaction_prealloc_size_basic.test
Normal file
210
mysql-test/suite/sys_vars/t/transaction_prealloc_size_basic.test
Normal file
@@ -0,0 +1,210 @@
|
||||
############## mysql-test\t\transaction_prealloc_size_basic.test ##############
|
||||
# #
|
||||
# Variable Name: transaction_prealloc_size #
|
||||
# Scope: GLOBAL | SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value: 4096 #
|
||||
# Range: #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-14 #
|
||||
# Author: Sharique Abdullah #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable transaction_prealloc_size#
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html#option_mysqld_transaction_prealloc_size #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF transaction_prealloc_size TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
#############################################################
|
||||
# Save initial value #
|
||||
#############################################################
|
||||
|
||||
SET @start_global_value = @@global.transaction_prealloc_size;
|
||||
SELECT @start_global_value;
|
||||
SET @start_session_value = @@session.transaction_prealloc_size;
|
||||
SELECT @start_session_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_01-------------------------#'
|
||||
########################################################################
|
||||
# Display the DEFAULT value of transaction_prealloc_size #
|
||||
########################################################################
|
||||
|
||||
SET @@global.transaction_prealloc_size = 100;
|
||||
SET @@global.transaction_prealloc_size = DEFAULT;
|
||||
SELECT @@global.transaction_prealloc_size;
|
||||
|
||||
|
||||
SET @@session.transaction_prealloc_size = 200;
|
||||
SET @@session.transaction_prealloc_size = DEFAULT;
|
||||
SELECT @@session.transaction_prealloc_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_02-------------------------#'
|
||||
########################################################################
|
||||
# Check the DEFAULT value of transaction_prealloc_size #
|
||||
########################################################################
|
||||
|
||||
SET @@global.transaction_prealloc_size = DEFAULT;
|
||||
SELECT @@global.transaction_prealloc_size = 4096;
|
||||
|
||||
SET @@session.transaction_prealloc_size = DEFAULT;
|
||||
SELECT @@session.transaction_prealloc_size = 4096;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_03-------------------------#'
|
||||
##################################################################
|
||||
# Change the value of variable to a valid value for GLOBAL Scope #
|
||||
##################################################################
|
||||
|
||||
SET @@global.transaction_prealloc_size = 1024;
|
||||
SELECT @@global.transaction_prealloc_size;
|
||||
|
||||
SET @@global.transaction_prealloc_size = 60020;
|
||||
SELECT @@global.transaction_prealloc_size;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_005_04-------------------------#'
|
||||
###################################################################
|
||||
# Change the value of variable to a valid value for SESSION Scope #
|
||||
###################################################################
|
||||
|
||||
SET @@session.transaction_prealloc_size = 1024;
|
||||
SELECT @@session.transaction_prealloc_size;
|
||||
|
||||
SET @@session.transaction_prealloc_size = 65535;
|
||||
SELECT @@session.transaction_prealloc_size;
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_05-----------------------#'
|
||||
#####################################################################
|
||||
# Change the value of transaction_prealloc_size to an invalid value #
|
||||
#####################################################################
|
||||
|
||||
SET @@global.transaction_prealloc_size = 0;
|
||||
SELECT @@global.transaction_prealloc_size;
|
||||
|
||||
SET @@global.transaction_prealloc_size = -1024;
|
||||
SELECT @@global.transaction_prealloc_size;
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.transaction_prealloc_size = ON;
|
||||
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.transaction_prealloc_size = OFF;
|
||||
|
||||
|
||||
SET @@global.transaction_prealloc_size = True;
|
||||
SELECT @@global.transaction_prealloc_size;
|
||||
|
||||
SET @@global.transaction_prealloc_size = False;
|
||||
SELECT @@global.transaction_prealloc_size;
|
||||
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.transaction_prealloc_size = 65530.34;
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.transaction_prealloc_size ="Test";
|
||||
|
||||
SET @@global.transaction_prealloc_size = 1000;
|
||||
SELECT @@global.transaction_prealloc_size;
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.transaction_prealloc_size = ON;
|
||||
|
||||
|
||||
-- Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.transaction_prealloc_size = OFF;
|
||||
|
||||
SET @@session.transaction_prealloc_size = True;
|
||||
SELECT @@session.transaction_prealloc_size;
|
||||
|
||||
SET @@session.transaction_prealloc_size = False;
|
||||
SELECT @@session.transaction_prealloc_size;
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@session.transaction_prealloc_size = "Test";
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_06-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
|
||||
SELECT @@global.transaction_prealloc_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='transaction_prealloc_size';
|
||||
|
||||
--echo '#------------------FN_DYNVARS_005_07-----------------------#'
|
||||
####################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
####################################################################
|
||||
|
||||
SELECT @@session.transaction_prealloc_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='transaction_prealloc_size';
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_09----------------------#'
|
||||
###########################################################################
|
||||
# Check if global and session variable are independent of each other #
|
||||
###########################################################################
|
||||
|
||||
SET @@global.transaction_prealloc_size = 1024;
|
||||
SET @@global.transaction_prealloc_size = 10;
|
||||
|
||||
SELECT @@transaction_prealloc_size = @@global.transaction_prealloc_size;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_10----------------------#'
|
||||
########################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE #
|
||||
# points to same session variable #
|
||||
########################################################################
|
||||
|
||||
SET @@transaction_prealloc_size = 100;
|
||||
SELECT @@transaction_prealloc_size = @@local.transaction_prealloc_size;
|
||||
SELECT @@local.transaction_prealloc_size = @@session.transaction_prealloc_size;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_001_11----------------------#'
|
||||
###############################################################################
|
||||
# Check if transaction_prealloc_size can be accessed with and without @@ sign #
|
||||
###############################################################################
|
||||
|
||||
SET transaction_prealloc_size = 1027;
|
||||
SELECT @@transaction_prealloc_size;
|
||||
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.transaction_prealloc_size;
|
||||
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.transaction_prealloc_size;
|
||||
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT transaction_prealloc_size = @@session.transaction_prealloc_size;
|
||||
|
||||
####################################
|
||||
# Restore initial value #
|
||||
####################################
|
||||
|
||||
SET @@global.transaction_prealloc_size = @start_global_value;
|
||||
SELECT @@global.transaction_prealloc_size;
|
||||
SET @@session.transaction_prealloc_size = @start_session_value;
|
||||
SELECT @@session.transaction_prealloc_size;
|
||||
|
||||
|
||||
#############################################################
|
||||
# END OF transaction_prealloc_size TESTS #
|
||||
#############################################################
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 32 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_32bit_ulong.inc
|
||||
--source suite/sys_vars/inc/transaction_prealloc_size_basic.inc
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
################################################################################
|
||||
# Created by Horst Hunger 2008-05-07 #
|
||||
# #
|
||||
# Wrapper for 64 bit machines #
|
||||
################################################################################
|
||||
|
||||
--source include/have_64bit_ulong.inc
|
||||
--source suite/sys_vars/inc/transaction_prealloc_size_basic.inc
|
||||
|
||||
Reference in New Issue
Block a user