mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
173 lines
5.6 KiB
Text
173 lines
5.6 KiB
Text
SET @start_global_value = @@global.max_error_count;
|
|
SELECT @start_global_value;
|
|
@start_global_value
|
|
64
|
|
SET @start_session_value = @@session.max_error_count;
|
|
SELECT @start_session_value;
|
|
@start_session_value
|
|
64
|
|
'#--------------------FN_DYNVARS_076_01-------------------------#'
|
|
SET @@global.max_error_count = 1000;
|
|
SET @@global.max_error_count = DEFAULT;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
64
|
|
SET @@session.max_error_count = 20000;
|
|
SET @@session.max_error_count = DEFAULT;
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
64
|
|
'#--------------------FN_DYNVARS_076_02-------------------------#'
|
|
SET @@global.max_error_count = DEFAULT;
|
|
SELECT @@global.max_error_count = 64;
|
|
@@global.max_error_count = 64
|
|
1
|
|
SET @@session.max_error_count = DEFAULT;
|
|
SELECT @@session.max_error_count = 64;
|
|
@@session.max_error_count = 64
|
|
1
|
|
'#--------------------FN_DYNVARS_076_03-------------------------#'
|
|
SET @@global.max_error_count = 1;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
1
|
|
SET @@global.max_error_count = 0;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
0
|
|
'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
|
|
SET @@global.max_error_count = 65535;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
65535
|
|
SET @@global.max_error_count = 65534;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
65534
|
|
'#--------------------FN_DYNVARS_076_04-------------------------#'
|
|
SET @@session.max_error_count = 0;
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
0
|
|
SET @@session.max_error_count = 1;
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
1
|
|
SET @@session.max_error_count = 65535;
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
65535
|
|
SET @@session.max_error_count = 65534;
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
65534
|
|
'#------------------FN_DYNVARS_076_05-----------------------#'
|
|
SET @@global.max_error_count = -1;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
0
|
|
SET @@global.max_error_count = -1024;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
0
|
|
SET @@global.max_error_count = 65536;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect max_error_count value: '65536'
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
65535
|
|
SET @@global.max_error_count = 10737418241;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect max_error_count value: '10737418241'
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
65535
|
|
SET @@global.max_error_count = 65530.34.;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
65535
|
|
SET @@global.max_error_count = test;
|
|
ERROR 42000: Incorrect argument type to variable 'max_error_count'
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
65535
|
|
SET @@session.max_error_count = -1;
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
0
|
|
SET @@session.max_error_count = 65536;
|
|
Warnings:
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
65535
|
|
SET @@session.max_error_count = -2;
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
0
|
|
SET @@session.max_error_count = 65530.34.;
|
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
|
|
SET @@session.max_error_count = 10737418241;
|
|
Warnings:
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
65535
|
|
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
|
|
SET @@session.max_error_count = test;
|
|
ERROR 42000: Incorrect argument type to variable 'max_error_count'
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
65535
|
|
'#------------------FN_DYNVARS_076_06-----------------------#'
|
|
SELECT @@global.max_error_count = VARIABLE_VALUE
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
WHERE VARIABLE_NAME='max_error_count';
|
|
@@global.max_error_count = VARIABLE_VALUE
|
|
1
|
|
'#------------------FN_DYNVARS_076_07-----------------------#'
|
|
SELECT @@session.max_error_count = VARIABLE_VALUE
|
|
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
|
WHERE VARIABLE_NAME='max_error_count';
|
|
@@session.max_error_count = VARIABLE_VALUE
|
|
1
|
|
'#------------------FN_DYNVARS_076_08-----------------------#'
|
|
SET @@global.max_error_count = TRUE;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
1
|
|
SET @@global.max_error_count = FALSE;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
0
|
|
'#---------------------FN_DYNVARS_001_09----------------------#'
|
|
SET @@global.max_error_count = 2048;
|
|
SELECT @@max_error_count = @@global.max_error_count;
|
|
@@max_error_count = @@global.max_error_count
|
|
0
|
|
'#---------------------FN_DYNVARS_001_10----------------------#'
|
|
SET @@max_error_count = 60000;
|
|
SELECT @@max_error_count = @@local.max_error_count;
|
|
@@max_error_count = @@local.max_error_count
|
|
1
|
|
SELECT @@local.max_error_count = @@session.max_error_count;
|
|
@@local.max_error_count = @@session.max_error_count
|
|
1
|
|
'#---------------------FN_DYNVARS_001_11----------------------#'
|
|
SET max_error_count = 1024;
|
|
SELECT @@max_error_count;
|
|
@@max_error_count
|
|
1024
|
|
SELECT local.max_error_count;
|
|
ERROR 42S02: Unknown table 'local' in field list
|
|
SELECT session.max_error_count;
|
|
ERROR 42S02: Unknown table 'session' in field list
|
|
SELECT max_error_count = @@session.max_error_count;
|
|
ERROR 42S22: Unknown column 'max_error_count' in 'field list'
|
|
SET @@global.max_error_count = @start_global_value;
|
|
SELECT @@global.max_error_count;
|
|
@@global.max_error_count
|
|
64
|
|
SET @@session.max_error_count = @start_session_value;
|
|
SELECT @@session.max_error_count;
|
|
@@session.max_error_count
|
|
64
|