Bug #30528 | TIMEDIFF has negative returned if start is after end, not returned by C API | ||
---|---|---|---|
Submitted: | 21 Aug 2007 5:16 | Modified: | 21 Aug 2007 12:55 |
Reporter: | bob smith | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S2 (Serious) |
Version: | 5.0.24a | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[21 Aug 2007 5:16]
bob smith
[21 Aug 2007 12:55]
Hartmut Holzgraefe
why would you make hour a signed value? why not year instead? or any of the other fields? what we do instead is to set the MYSQL_TIME::neg flag to 1 if the result is negative and to 0 if it is positive.