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

week() and ISO 8601

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5, 10.1, 10.2, 10.3, 10.4
    • Fix Version/s: N/A
    • Component/s: Temporal Types
    • Labels:
    • Environment:
      all

      Description

      I tested ISO 8601 behavior on PostgreSQL and MariaDB:
      PostgreSQL:
      SELECT EXTRACT (WEEK from '2019-12-30'::date) => 1
      MariaDB:
      SELECT WEEK('2019-12-30') => 52

      I published result.

      Andrew Hutchings answered:
      Beat me to it �. We should maybe update the week doc to mention mode 3 is 8601

      So, here is the ticket, to forget it.

        Attachments

          Activity

            People

            Assignee:
            bar Alexander Barkov
            Reporter:
            miracee miracee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: