Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 5.3.12, 5.5.36, 10.0.9
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
mysql> select weekday(now()),dayname(now()),dayname(now())+1; +----------------+----------------+------------------+ | weekday(now()) | dayname(now()) | dayname(now())+1 | +----------------+----------------+------------------+ | 2 | Wednesday | 3 | +----------------+----------------+------------------+ 1 row in set (0.00 sec)
3 is wrong for the third column.
It's not clear why 'Wednesday'+1 should return 3.
The expected result is 1 with a warning.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
should we document it or fix?