mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
b00c536378
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
65 lines
1.6 KiB
Text
65 lines
1.6 KiB
Text
'#--------------------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
|