summaryrefslogtreecommitdiff
path: root/mysql-test/r/log_bin_trust_function_creators_basic.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/r/log_bin_trust_function_creators_basic.result')
-rw-r--r--mysql-test/r/log_bin_trust_function_creators_basic.result100
1 files changed, 100 insertions, 0 deletions
diff --git a/mysql-test/r/log_bin_trust_function_creators_basic.result b/mysql-test/r/log_bin_trust_function_creators_basic.result
new file mode 100644
index 00000000000..40dc0e217c4
--- /dev/null
+++ b/mysql-test/r/log_bin_trust_function_creators_basic.result
@@ -0,0 +1,100 @@
+SET @start_global_value = @@global.log_bin_trust_function_creators;
+SELECT @start_global_value;
+@start_global_value
+1
+'Bug# 34876: TRUE value is coming as Default'
+SET @start_session_value = @@session.log_bin_trust_function_creators;
+ERROR HY000: Variable 'log_bin_trust_function_creators' is a GLOBAL variable
+'Bug# 34881: According to documentation the scope of this variable is GLOBAL as well as SESSION too';
+'#--------------------FN_DYNVARS_063_01-------------------------#'
+SET @@global.log_bin_trust_function_creators = TRUE;
+SET @@global.log_bin_trust_function_creators = DEFAULT;
+SELECT @@global.log_bin_trust_function_creators;
+@@global.log_bin_trust_function_creators
+0
+'#--------------------FN_DYNVARS_063_02-------------------------#'
+SET @@global.log_bin_trust_function_creators = DEFAULT;
+SELECT @@global.log_bin_trust_function_creators = 'FALSE';
+@@global.log_bin_trust_function_creators = 'FALSE'
+1
+Warnings:
+Warning 1292 Truncated incorrect DOUBLE value: 'FALSE'
+'#--------------------FN_DYNVARS_063_03-------------------------#'
+SET @@global.log_bin_trust_function_creators = ON;
+SELECT @@global.log_bin_trust_function_creators;
+@@global.log_bin_trust_function_creators
+1
+SET @@global.log_bin_trust_function_creators = OFF;
+SELECT @@global.log_bin_trust_function_creators;
+@@global.log_bin_trust_function_creators
+0
+SET @@global.log_bin_trust_function_creators = 0;
+SELECT @@global.log_bin_trust_function_creators;
+@@global.log_bin_trust_function_creators
+0
+SET @@global.log_bin_trust_function_creators = 1;
+SELECT @@global.log_bin_trust_function_creators;
+@@global.log_bin_trust_function_creators
+1
+SET @@global.log_bin_trust_function_creators = TRUE;
+SELECT @@global.log_bin_trust_function_creators;
+@@global.log_bin_trust_function_creators
+1
+SET @@global.log_bin_trust_function_creators = FALSE;
+SELECT @@global.log_bin_trust_function_creators;
+@@global.log_bin_trust_function_creators
+0
+'#-------------------FN_DYNVARS_063_04----------------------------#'
+SET @@session.log_bin_trust_function_creators = 0;
+ERROR HY000: Variable 'log_bin_trust_function_creators' is a GLOBAL variable and should be set with SET GLOBAL
+SELECT @@session.log_bin_trust_function_creators;
+ERROR HY000: Variable 'log_bin_trust_function_creators' is a GLOBAL variable
+'#------------------FN_DYNVARS_063_05-----------------------#'
+SET @@global.log_bin_trust_function_creators = 'ONN';
+ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'ONN'
+SET @@global.log_bin_trust_function_creators = "OFFF";
+ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'OFFF'
+SET @@global.log_bin_trust_function_creators = OF;
+'Bug# 34828: OF is also working as OFF and no error is coming';
+SET @@global.log_bin_trust_function_creators = TTRUE;
+ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'TTRUE'
+SET @@global.log_bin_trust_function_creators = FELSE;
+ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'FELSE'
+SET @@global.log_bin_trust_function_creators = -1024;
+ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of '-1024'
+SET @@global.log_bin_trust_function_creators = 65536;
+ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of '65536'
+SET @@global.log_bin_trust_function_creators = 65530.34;
+ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of '65530'
+SET @@global.log_bin_trust_function_creators = test;
+ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'test'
+'#------------------FN_DYNVARS_063_06-----------------------#'
+SELECT @@global.log_bin_trust_function_creators = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
+WHERE VARIABLE_NAME='log_bin_trust_function_creators';
+@@global.log_bin_trust_function_creators = VARIABLE_VALUE
+1
+SELECT @@session.log_bin_trust_function_creators = VARIABLE_VALUE
+FROM INFORMATION_SCHEMA.SESSION_VARIABLES
+WHERE VARIABLE_NAME='log_bin_trust_function_creators';
+ERROR HY000: Variable 'log_bin_trust_function_creators' is a GLOBAL variable
+'#---------------------FN_DYNVARS_063_07----------------------#'
+SET @@global.log_bin_trust_function_creators = TRUE;
+SELECT @@log_bin_trust_function_creators = @@global.log_bin_trust_function_creators;
+@@log_bin_trust_function_creators = @@global.log_bin_trust_function_creators
+1
+'#---------------------FN_DYNVARS_063_08----------------------#'
+SET @@global.log_bin_trust_function_creators = TRUE;
+SELECT @@log_bin_trust_function_creators;
+@@log_bin_trust_function_creators
+1
+SELECT local.log_bin_trust_function_creators;
+ERROR 42S02: Unknown table 'local' in field list
+SELECT session.log_bin_trust_function_creators;
+ERROR 42S02: Unknown table 'session' in field list
+SELECT log_bin_trust_function_creators = @@session.log_bin_trust_function_creators;
+ERROR 42S22: Unknown column 'log_bin_trust_function_creators' in 'field list'
+SET @@global.log_bin_trust_function_creators = @start_global_value;
+SELECT @@global.log_bin_trust_function_creators;
+@@global.log_bin_trust_function_creators
+1