[MDEV-21381] week() and ISO 8601 Created: 2019-12-22 Updated: 2019-12-24 Resolved: 2019-12-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| Affects Version/s: | 5.5, 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | miracee | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Environment: |
all |
||
| Description |
|
I tested ISO 8601 behavior on PostgreSQL and MariaDB: I published result. Andrew Hutchings answered: So, here is the ticket, to forget it. |
| Comments |
| Comment by Elena Stepanova [ 2019-12-23 ] | ||||||
|
Same with all MySQL versions. | ||||||
| Comment by Alexander Barkov [ 2019-12-24 ] | ||||||
|
In order to get ISO 8601 week numbering, please use WEEK(date,3):
I have updated the manual at https://mariadb.com/kb/en/week/ |