Details
Description
There is some inconsistency between
MAKETIME(0,0, negative_integer_number) and
MAKETIME(0,0, negative_decimal_number)
SELECT MAKETIME(0,0,-1), MAKETIME(0, 0, -0.1); +------------------+----------------------+ | MAKETIME(0,0,-1) | MAKETIME(0, 0, -0.1) | +------------------+----------------------+ | NULL | 00:00:00 | +------------------+----------------------+
The expression with the negative decimal number should also return NULL.
MySQL-5.5 exhibits the same behaviour.
MySQL-5.6 returns NULL for both expressions.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
The patch for "
MDEV-4724Some temporal functions do not preserve microseconds" fixed this issue as well.