mariadb/mysql-test/r/default_week_format_func.result
unknown b00c536378 System variable tests delivered by Folio3 (see WL4288).
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
2008-04-10 15:14:28 +02:00

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