SET @start_global_value = @@global.log_warnings; SELECT @start_global_value; @start_global_value 1 '#--------------------FN_DYNVARS_067_01-------------------------#' SET @@global.log_warnings = 100; SET @@global.log_warnings = DEFAULT; SELECT @@global.log_warnings; @@global.log_warnings 1 '#--------------------FN_DYNVARS_067_02-------------------------#' SET @@global.log_warnings = DEFAULT; SELECT @@global.log_warnings = 1; @@global.log_warnings = 1 1 '#--------------------FN_DYNVARS_067_03-------------------------#' SET @@global.log_warnings = 0; SELECT @@global.log_warnings; @@global.log_warnings 0 SET @@global.log_warnings = 1; SELECT @@global.log_warnings; @@global.log_warnings 1 SET @@global.log_warnings = 60020; SELECT @@global.log_warnings; @@global.log_warnings 60020 SET @@global.log_warnings = 65535; SELECT @@global.log_warnings; @@global.log_warnings 65535 SET @@global.log_warnings = 65536; SELECT @@global.log_warnings; @@global.log_warnings 65536 '#------------------FN_DYNVARS_067_04-----------------------#' SET @@global.log_warnings = 100000000000; SELECT @@global.log_warnings; @@global.log_warnings 100000000000 SET @@global.log_warnings = -1024; Warnings: Warning 1292 Truncated incorrect log_warnings value: '-1024' SELECT @@global.log_warnings; @@global.log_warnings 0 SET @@global.log_warnings = 65530.34; ERROR 42000: Incorrect argument type to variable 'log_warnings' SELECT @@global.log_warnings; @@global.log_warnings 0 SET @@global.log_warnings = test; ERROR 42000: Incorrect argument type to variable 'log_warnings' SELECT @@global.log_warnings; @@global.log_warnings 0 '#------------------FN_DYNVARS_067_05-----------------------#' SELECT @@global.log_warnings = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='log_warnings'; @@global.log_warnings = VARIABLE_VALUE 1 '#------------------FN_DYNVARS_067_06-----------------------#' SET @@global.log_warnings = TRUE; SELECT @@global.log_warnings; @@global.log_warnings 1 SET @@global.log_warnings = FALSE; SELECT @@global.log_warnings; @@global.log_warnings 0 '#---------------------FN_DYNVARS_067_07----------------------#' SET @@global.log_warnings = 10; SELECT @@log_warnings = @@global.log_warnings; @@log_warnings = @@global.log_warnings 1 SET @@global.log_warnings = @start_global_value; SELECT @@global.log_warnings; @@global.log_warnings 1