summaryrefslogtreecommitdiff
path: root/mysql-test/r/max_allowed_packet_basic.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/r/max_allowed_packet_basic.result')
-rw-r--r--mysql-test/r/max_allowed_packet_basic.result193
1 files changed, 193 insertions, 0 deletions
diff --git a/mysql-test/r/max_allowed_packet_basic.result b/mysql-test/r/max_allowed_packet_basic.result
new file mode 100644
index 00000000000..3940cc1b2f2
--- /dev/null
+++ b/mysql-test/r/max_allowed_packet_basic.result
@@ -0,0 +1,193 @@
+SET @start_global_value = @@global.max_allowed_packet;
+SELECT @start_global_value;
+@start_global_value
+1048576
+SET @start_session_value = @@session.max_allowed_packet;
+SELECT @start_session_value;
+@start_session_value
+1048576
+'#--------------------FN_DYNVARS_070_01-------------------------#'
+SET @@global.max_allowed_packet = 1000;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '1000'
+SET @@global.max_allowed_packet = DEFAULT;
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1048576
+SET @@session.max_allowed_packet = 20000;
+SET @@session.max_allowed_packet = DEFAULT;
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1048576
+'#--------------------FN_DYNVARS_070_02-------------------------#'
+SET @@global.max_allowed_packet = DEFAULT;
+SELECT @@global.max_allowed_packet = 1048576;
+@@global.max_allowed_packet = 1048576
+1
+SET @@session.max_allowed_packet = DEFAULT;
+SELECT @@session.max_allowed_packet = 1048576;
+@@session.max_allowed_packet = 1048576
+1
+'#--------------------FN_DYNVARS_070_03-------------------------#'
+SET @@global.max_allowed_packet = 1024;
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1024
+SET @@global.max_allowed_packet = 1025;
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1024
+: 'Bug# 34841: "Invalid values are coming in variable on assigning valid value';
+SET @@global.max_allowed_packet = 1073741824;
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1073741824
+SET @@global.max_allowed_packet = 1073741823;
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1073740800
+'#--------------------FN_DYNVARS_070_04-------------------------#'
+SET @@session.max_allowed_packet = 1024;
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1024
+SET @@session.max_allowed_packet = 1025;
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1024
+SET @@session.max_allowed_packet = 65535;
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+64512
+SET @@session.max_allowed_packet = 1073741824;
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1073741824
+SET @@session.max_allowed_packet = 1073741823;
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1073740800
+'#------------------FN_DYNVARS_070_05-----------------------#'
+SET @@global.max_allowed_packet = 0;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '0'
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1024
+SET @@global.max_allowed_packet = -1024;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '0'
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1024
+SET @@global.max_allowed_packet = 1023;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '1023'
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1024
+SET @@global.max_allowed_packet = 10737418241;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '10737418241'
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1073741824
+SET @@global.max_allowed_packet = 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_allowed_packet;
+@@global.max_allowed_packet
+1073741824
+SET @@global.max_allowed_packet = test;
+ERROR 42000: Incorrect argument type to variable 'max_allowed_packet'
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1073741824
+SET @@session.max_allowed_packet = 0;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '0'
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1024
+SET @@session.max_allowed_packet = 1023;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '1023'
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1024
+SET @@session.max_allowed_packet = -2;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '0'
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1024
+SET @@session.max_allowed_packet = 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_allowed_packet = 10737418241;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '10737418241'
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1073741824
+'Bug # 34837: Errors are not coming on assigning invalid values to variable';
+SET @@session.max_allowed_packet = test;
+ERROR 42000: Incorrect argument type to variable 'max_allowed_packet'
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1073741824
+'#------------------FN_DYNVARS_070_06-----------------------#'
+SELECT @@global.max_allowed_packet = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='max_allowed_packet';
+@@global.max_allowed_packet = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_070_07-----------------------#'
+SELECT @@session.max_allowed_packet = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='max_allowed_packet';
+@@session.max_allowed_packet = VARIABLE_VALUE
+1
+'#------------------FN_DYNVARS_070_08-----------------------#'
+SET @@global.max_allowed_packet = TRUE;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '1'
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1024
+SET @@global.max_allowed_packet = FALSE;
+Warnings:
+Warning 1292 Truncated incorrect max_allowed_packet value: '0'
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1024
+'#---------------------FN_DYNVARS_070_09----------------------#'
+SET @@global.max_allowed_packet = 2048;
+SELECT @@max_allowed_packet = @@global.max_allowed_packet;
+@@max_allowed_packet = @@global.max_allowed_packet
+0
+'#---------------------FN_DYNVARS_070_10----------------------#'
+SET @@max_allowed_packet = 100000;
+SELECT @@max_allowed_packet = @@local.max_allowed_packet;
+@@max_allowed_packet = @@local.max_allowed_packet
+1
+SELECT @@local.max_allowed_packet = @@session.max_allowed_packet;
+@@local.max_allowed_packet = @@session.max_allowed_packet
+1
+'#---------------------FN_DYNVARS_070_11----------------------#'
+SET max_allowed_packet = 1024;
+SELECT @@max_allowed_packet;
+@@max_allowed_packet
+1024
+SELECT local.max_allowed_packet;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.max_allowed_packet;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT max_allowed_packet = @@session.max_allowed_packet;
+ERROR 42S22: Unknown column 'max_allowed_packet' in 'field list'
+SET @@global.max_allowed_packet = @start_global_value;
+SELECT @@global.max_allowed_packet;
+@@global.max_allowed_packet
+1048576
+SET @@session.max_allowed_packet = @start_session_value;
+SELECT @@session.max_allowed_packet;
+@@session.max_allowed_packet
+1048576