[MDEV-8205] timediff returns null when comparing decimal time to time string value Created: 2015-05-21 Updated: 2015-06-15 Resolved: 2015-06-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| Affects Version/s: | 10.0.18 |
| Fix Version/s: | 10.0.20 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mark Punak | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | decimal, timediff | ||
| Environment: |
CentOS 7 |
||
| Sprint: | 10.0.20 |
| Description |
|
timediff function does not correctly convert decimal values to datetime when comparing a decimal time to a string time, returning null. Problem does not manifest in the datediff function.
|
| Comments |
| Comment by Elena Stepanova [ 2015-05-21 ] | ||||||||||||||
|
Thanks for the report. | ||||||||||||||
| Comment by Alexander Barkov [ 2015-06-10 ] | ||||||||||||||
|
There is a related problem. In string notation, TIMEDIFF takes into account the date part:
while in numeric notation it ignores the date part:
|