mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 14:33:32 +03:00 
			
		
		
		
	BitKeeper/etc/ignore: Added mysql-test/linux_sys_vars.inc mysql-test/load_sysvars.inc mysql-test/windows_sys_vars.inc to the ignore list
		
			
				
	
	
		
			66 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
'#--------------------FN_DYNVARS_022_01-------------------------#'
 | 
						|
## Setting variable's value to 0 ##
 | 
						|
SET @@session.default_week_format = 0;
 | 
						|
SELECT @@session.default_week_format;
 | 
						|
@@session.default_week_format
 | 
						|
0
 | 
						|
SELECT WEEK('2008-01-20');
 | 
						|
WEEK('2008-01-20')
 | 
						|
3
 | 
						|
## Setting variable's value to 1 ##
 | 
						|
SET @@session.default_week_format = 1;
 | 
						|
SELECT @@session.default_week_format;
 | 
						|
@@session.default_week_format
 | 
						|
1
 | 
						|
SELECT WEEK('2008-01-20');
 | 
						|
WEEK('2008-01-20')
 | 
						|
3
 | 
						|
## Setting variable's value to 2 ##
 | 
						|
SET @@session.default_week_format = 2;
 | 
						|
SELECT @@session.default_week_format;
 | 
						|
@@session.default_week_format
 | 
						|
2
 | 
						|
SELECT WEEK('2008-01-20');
 | 
						|
WEEK('2008-01-20')
 | 
						|
3
 | 
						|
## Setting variable's value to 3 ##
 | 
						|
SET @@session.default_week_format = 3;
 | 
						|
SELECT @@session.default_week_format;
 | 
						|
@@session.default_week_format
 | 
						|
3
 | 
						|
SELECT WEEK('2008-01-20');
 | 
						|
WEEK('2008-01-20')
 | 
						|
3
 | 
						|
## Setting variable's value to 4 ##
 | 
						|
SET @@session.default_week_format = 4;
 | 
						|
SELECT @@session.default_week_format;
 | 
						|
@@session.default_week_format
 | 
						|
4
 | 
						|
SELECT WEEK('2008-01-20');
 | 
						|
WEEK('2008-01-20')
 | 
						|
4
 | 
						|
## Setting variable's value to 5 ##
 | 
						|
SET @@session.default_week_format = 5;
 | 
						|
SELECT @@session.default_week_format;
 | 
						|
@@session.default_week_format
 | 
						|
5
 | 
						|
SELECT WEEK('2008-01-20');
 | 
						|
WEEK('2008-01-20')
 | 
						|
2
 | 
						|
## Setting variable's value to 6 ##
 | 
						|
SET @@session.default_week_format = 6;
 | 
						|
SELECT @@session.default_week_format;
 | 
						|
@@session.default_week_format
 | 
						|
6
 | 
						|
SELECT WEEK('2008-01-20');
 | 
						|
WEEK('2008-01-20')
 | 
						|
4
 | 
						|
## Setting variable's value to 7 ##
 | 
						|
SET @@session.default_week_format = 7;
 | 
						|
SELECT @@session.default_week_format;
 | 
						|
@@session.default_week_format
 | 
						|
7
 | 
						|
SELECT WEEK('2008-01-20');
 | 
						|
WEEK('2008-01-20')
 | 
						|
2
 |