mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	conflicts: Text conflict in mysql-test/suite/sys_vars/r/rpl_max_binlog_size_func.result Text conflict in mysql-test/suite/sys_vars/t/rpl_max_binlog_size_func.test
		
			
				
	
	
		
			67 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
###################### mysql-test\t\log_basic.test ############################
 | 
						|
#                                                                             #
 | 
						|
# Variable Name: log_basic                                                    #
 | 
						|
# Scope: GLOBAL                                                               #
 | 
						|
# Access Type: Dynamic                                                        #
 | 
						|
# Data Type: string                                                           #
 | 
						|
# Default Value:                                                              #
 | 
						|
# Range:                                                                      #
 | 
						|
#                                                                             #
 | 
						|
#                                                                             #
 | 
						|
# Creation Date: 2008-02-07                                                   #
 | 
						|
# Author:  Rizwan                                                             #
 | 
						|
#                                                                             #
 | 
						|
# Description:                                                                #
 | 
						|
#    Test Cases of Dynamic System Variable log that checks the behavior of    #
 | 
						|
#    this variable in the following ways                                      #
 | 
						|
#              * Default Value                                                #
 | 
						|
#              * Valid & Invalid values                                       #
 | 
						|
#              * Scope & Access method                                        #
 | 
						|
#              * Data Integrity                                               #
 | 
						|
#                                                                             #
 | 
						|
# Reference:                                                                  #
 | 
						|
#    http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html      #
 | 
						|
#                                                                             #
 | 
						|
###############################################################################
 | 
						|
 | 
						|
--source include/load_sysvars.inc
 | 
						|
 | 
						|
#####################################
 | 
						|
##       START OF log TESTS        ##
 | 
						|
#####################################
 | 
						|
 | 
						|
--echo '#--------------------FN_DYNVARS_062_01------------------#'
 | 
						|
#############################################################
 | 
						|
#                 Accessing variable                        #
 | 
						|
#############################################################
 | 
						|
 | 
						|
SET @start_log= @@global.log;
 | 
						|
 | 
						|
SELECT @@global.log AS INIT_VALUE;
 | 
						|
 | 
						|
SELECT @@log AS INIT_VALUE;
 | 
						|
 | 
						|
SET @@global.general_log = ON;
 | 
						|
 | 
						|
SET global general_log = 0;
 | 
						|
 | 
						|
--echo 'Bug# 34832: log is a system but it is not accessible using SET @@global.log;'
 | 
						|
--echo 'SET GLOBAL log; and SELECT @@global.log. SHOW VARIABLES shows the value of log.'
 | 
						|
 | 
						|
 | 
						|
--echo '#--------------------FN_DYNVARS_062_02-------------------------#'
 | 
						|
################################################################################
 | 
						|
#     Check if the value in GLOBAL Table matches value in variable             #
 | 
						|
################################################################################
 | 
						|
# We can only access log value from information schema global_variables table
 | 
						|
SELECT VARIABLE_VALUE
 | 
						|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
 | 
						|
WHERE VARIABLE_NAME='log';
 | 
						|
 | 
						|
SET @@global.log= @start_log;
 | 
						|
 | 
						|
############################################
 | 
						|
#                 END OF log TESTS         #
 | 
						|
############################################
 | 
						|
 |