Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6996

SET STATEMENT default_week_format = .. has no effect

    XMLWordPrintable

Details

    Description

      MariaDB [test]> SELECT @@default_week_format;
      +-----------------------+
      | @@default_week_format |
      +-----------------------+
      |                     0 |
      +-----------------------+
      1 row in set (0.00 sec)
       
      MariaDB [test]> SELECT WEEK('2000-01-01');
      +--------------------+
      | WEEK('2000-01-01') |
      +--------------------+
      |                  0 |
      +--------------------+
      1 row in set (0.00 sec)
       
      MariaDB [test]> SELECT WEEK('2000-01-01',2);
      +----------------------+
      | WEEK('2000-01-01',2) |
      +----------------------+
      |                   52 |
      +----------------------+
      1 row in set (0.00 sec)

      MariaDB [test]> SET STATEMENT default_week_format = 2 FOR SELECT WEEK('2000-01-01');
      +--------------------+
      | WEEK('2000-01-01') |
      +--------------------+
      |                  0 |
      +--------------------+
      1 row in set (0.01 sec)
       
      MariaDB [test]> SET default_week_format = 2;
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [test]> SELECT WEEK('2000-01-01');
      +--------------------+
      | WEEK('2000-01-01') |
      +--------------------+
      |                 52 |
      +--------------------+
      1 row in set (0.00 sec)

      All the same in Percona server.

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.