Bug #31864 | TIMEDIFF throwing warnings | ||
---|---|---|---|
Submitted: | 25 Oct 2007 21:24 | Modified: | 8 Feb 2008 2:13 |
Reporter: | Jared S (Silver Quality Contributor) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.54, 5.1.22 | OS: | Windows (Any) |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
Tags: | hour, qc, timediff, warning |
[25 Oct 2007 21:24]
Jared S
[25 Oct 2007 21:26]
Jared S
+corrected version
[26 Oct 2007 10:41]
Hartmut Holzgraefe
regression: works fine with 4.1, fails with 5.0 and 5.1
[26 Oct 2007 10:42]
Hartmut Holzgraefe
mysqltest test case
Attachment: bug31864.tgz (application/x-gtar, text), 834 bytes.
[6 Jan 2008 22:25]
Jared S
Would like better defect class on this bug.
[21 Jan 2008 21:58]
Jared S
This may be a duplicate http://bugs.mysql.com/bug.php?id=31990
[7 Feb 2008 21:39]
Evgeny Potemkin
According to the manual (http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timediff) the TIMEDIFF function return a TIME value. TIME values are restricted to +/- 838:59:59 (http://dev.mysql.com/doc/refman/5.1/en/time.html). You can use TIMESTAMPDIFF function instead.
[8 Feb 2008 2:13]
Jared S
Thank you Evgeny, 5.1 documentation is quite an improvement.