mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Manual merge from mysql-5.1 for Bug#11764168 (56976: Severe denial
of service in prepared statements).
This commit is contained in:
14
mysql-test/suite/sys_vars/r/max_long_data_size_basic.result
Normal file
14
mysql-test/suite/sys_vars/r/max_long_data_size_basic.result
Normal file
@@ -0,0 +1,14 @@
|
||||
select @@global.max_long_data_size=20;
|
||||
@@global.max_long_data_size=20
|
||||
0
|
||||
select @@session.max_long_data_size;
|
||||
ERROR HY000: Variable 'max_long_data_size' is a GLOBAL variable
|
||||
SELECT @@global.max_long_data_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='max_long_data_size';
|
||||
@@global.max_long_data_size = VARIABLE_VALUE
|
||||
1
|
||||
set global max_long_data_size=1;
|
||||
ERROR HY000: Variable 'max_long_data_size' is a read only variable
|
||||
set session max_long_data_size=1;
|
||||
ERROR HY000: Variable 'max_long_data_size' is a read only variable
|
17
mysql-test/suite/sys_vars/t/max_long_data_size_basic.test
Normal file
17
mysql-test/suite/sys_vars/t/max_long_data_size_basic.test
Normal file
@@ -0,0 +1,17 @@
|
||||
select @@global.max_long_data_size=20;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
select @@session.max_long_data_size;
|
||||
|
||||
# Show that value of the variable matches the value in the GLOBAL I_S table
|
||||
SELECT @@global.max_long_data_size = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='max_long_data_size';
|
||||
|
||||
#
|
||||
# show that it's read-only
|
||||
#
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
set global max_long_data_size=1;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
set session max_long_data_size=1;
|
||||
|
Reference in New Issue
Block a user