[MDEV-4861] TIME/DATETIME arithmetics does not preserve INTERVAL precision Created: 2013-08-08 Updated: 2013-09-16 Resolved: 2013-09-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.3, 5.5.32, 5.3.12 |
| Fix Version/s: | 10.0.5, 5.5.33, 5.3.13 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The above output does not look correct. The same problem is observed with a DATETIME column:
The same problem is observed with DATE_ADD:
Note: MySQL-5.6 is not affected. |
| Comments |
| Comment by Sergei Golubchik [ 2013-08-09 ] |
|
This was intentional. The documented way to add microseconds is to use + INTERVAL '1.1' SECOND_MICROSECOND If desired, we can allow 1.1 SECOND too, like MySQL 5.6 does. |