summaryrefslogtreecommitdiff
path: root/mysql-test/t/max_error_count_basic.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/t/max_error_count_basic.test')
-rw-r--r--mysql-test/t/max_error_count_basic.test215
1 files changed, 0 insertions, 215 deletions
diff --git a/mysql-test/t/max_error_count_basic.test b/mysql-test/t/max_error_count_basic.test
deleted file mode 100644
index 2b1e12843cf..00000000000
--- a/mysql-test/t/max_error_count_basic.test
+++ /dev/null
@@ -1,215 +0,0 @@
-############## mysql-test\t\max_error_count_basic.test ###############
-# #
-# Variable Name: max_error_count #
-# Scope: GLOBAL | SESSION #
-# Access Type: Dynamic #
-# Data Type: numeric #
-# Default Value: 64 #
-# Range: 0-65535 #
-# #
-# #
-# Creation Date: 2008-02-07 #
-# Author: Salman #
-# #
-# Description: Test Cases of Dynamic System Variable max_error_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_error_count TESTS #
-###############################################################
-
-
-#############################################################
-# Save initial value #
-#############################################################
-
-SET @start_global_value = @@global.max_error_count;
-SELECT @start_global_value;
-SET @start_session_value = @@session.max_error_count;
-SELECT @start_session_value;
-
-
---echo '#--------------------FN_DYNVARS_076_01-------------------------#'
-###############################################################
-# Display the DEFAULT value of max_error_count #
-###############################################################
-
-SET @@global.max_error_count = 1000;
-SET @@global.max_error_count = DEFAULT;
-SELECT @@global.max_error_count;
-
-SET @@session.max_error_count = 20000;
-SET @@session.max_error_count = DEFAULT;
-SELECT @@session.max_error_count;
-
-
---echo '#--------------------FN_DYNVARS_076_02-------------------------#'
-##################################################################
-# Check the DEFAULT value of max_error_count #
-##################################################################
-
-SET @@global.max_error_count = DEFAULT;
-SELECT @@global.max_error_count = 64;
-
-SET @@session.max_error_count = DEFAULT;
-SELECT @@session.max_error_count = 64;
-
-
---echo '#--------------------FN_DYNVARS_076_03-------------------------#'
-############################################################################
-# Change the value of max_error_count to a valid value for GLOBAL Scope #
-############################################################################
-
-SET @@global.max_error_count = 1;
-SELECT @@global.max_error_count;
-SET @@global.max_error_count = 0;
-SELECT @@global.max_error_count;
---echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
-
-SET @@global.max_error_count = 65535;
-SELECT @@global.max_error_count;
-SET @@global.max_error_count = 65534;
-SELECT @@global.max_error_count;
-
---echo '#--------------------FN_DYNVARS_076_04-------------------------#'
-#############################################################################
-# Change the value of max_error_count to a valid value for SESSION Scope #
-#############################################################################
-
-SET @@session.max_error_count = 0;
-SELECT @@session.max_error_count;
-SET @@session.max_error_count = 1;
-SELECT @@session.max_error_count;
-SET @@session.max_error_count = 65535;
-SELECT @@session.max_error_count;
-SET @@session.max_error_count = 65534;
-SELECT @@session.max_error_count;
-
-
---echo '#------------------FN_DYNVARS_076_05-----------------------#'
-##############################################################
-# Change the value of max_error_count to an invalid value #
-##############################################################
-
-SET @@global.max_error_count = -1;
-SELECT @@global.max_error_count;
-SET @@global.max_error_count = -1024;
-SELECT @@global.max_error_count;
-SET @@global.max_error_count = 65536;
-SELECT @@global.max_error_count;
-SET @@global.max_error_count = 10737418241;
-SELECT @@global.max_error_count;
---Error ER_PARSE_ERROR
-SET @@global.max_error_count = 65530.34.;
-SELECT @@global.max_error_count;
---Error ER_WRONG_TYPE_FOR_VAR
-SET @@global.max_error_count = test;
-SELECT @@global.max_error_count;
-
-SET @@session.max_error_count = -1;
-SELECT @@session.max_error_count;
-SET @@session.max_error_count = 65536;
-SELECT @@session.max_error_count;
-SET @@session.max_error_count = -2;
-SELECT @@session.max_error_count;
---Error ER_PARSE_ERROR
-SET @@session.max_error_count = 65530.34.;
-SET @@session.max_error_count = 10737418241;
-SELECT @@session.max_error_count;
---echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
-
---Error ER_WRONG_TYPE_FOR_VAR
-SET @@session.max_error_count = test;
-SELECT @@session.max_error_count;
-
-
---echo '#------------------FN_DYNVARS_076_06-----------------------#'
-####################################################################
-# Check if the value in GLOBAL Table matches value in variable #
-####################################################################
-
-
-SELECT @@global.max_error_count = VARIABLE_VALUE
-FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
-WHERE VARIABLE_NAME='max_error_count';
-
---echo '#------------------FN_DYNVARS_076_07-----------------------#'
-####################################################################
-# Check if the value in SESSION Table matches value in variable #
-####################################################################
-
-SELECT @@session.max_error_count = VARIABLE_VALUE
-FROM INFORMATION_SCHEMA.SESSION_VARIABLES
-WHERE VARIABLE_NAME='max_error_count';
-
-
---echo '#------------------FN_DYNVARS_076_08-----------------------#'
-####################################################################
-# Check if TRUE and FALSE values can be used on variable #
-####################################################################
-
-SET @@global.max_error_count = TRUE;
-SELECT @@global.max_error_count;
-SET @@global.max_error_count = FALSE;
-SELECT @@global.max_error_count;
-
-
---echo '#---------------------FN_DYNVARS_001_09----------------------#'
-#################################################################################
-# Check if accessing variable with and without GLOBAL point to same variable #
-#################################################################################
-
-SET @@global.max_error_count = 2048;
-SELECT @@max_error_count = @@global.max_error_count;
-
-
---echo '#---------------------FN_DYNVARS_001_10----------------------#'
-########################################################################################################
-# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
-########################################################################################################
-
-SET @@max_error_count = 60000;
-SELECT @@max_error_count = @@local.max_error_count;
-SELECT @@local.max_error_count = @@session.max_error_count;
-
-
---echo '#---------------------FN_DYNVARS_001_11----------------------#'
-#############################################################################
-# Check if max_error_count can be accessed with and without @@ sign #
-#############################################################################
-
-SET max_error_count = 1024;
-SELECT @@max_error_count;
---Error ER_UNKNOWN_TABLE
-SELECT local.max_error_count;
---Error ER_UNKNOWN_TABLE
-SELECT session.max_error_count;
---Error ER_BAD_FIELD_ERROR
-SELECT max_error_count = @@session.max_error_count;
-
-
-####################################
-# Restore initial value #
-####################################
-
-SET @@global.max_error_count = @start_global_value;
-SELECT @@global.max_error_count;
-SET @@session.max_error_count = @start_session_value;
-SELECT @@session.max_error_count;
-
-
-#######################################################
-# END OF max_error_count TESTS #
-#######################################################
-