1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-11 05:52:26 +03:00
Files
mariadb/sql
Tatiana A. Nurnberg ae0c6a949c Bug#37553: MySql Error Compare TimeDiff & Time
We pretended that TIMEDIFF() would always return positive results;
this gave strange results in comparisons of the TIMEDIFF(low,hi)<TIME(0)
type that rendered a negative result, but still gave false in comparison.
We also inadvertantly dropped the sign when converting times to
decimal.

CAST(time AS DECIMAL) handles signs of the times correctly.
TIMEDIFF() marked up as signed. Time/date comparison code switched to
signed for clarity.
2008-11-26 09:28:17 +01:00
..
2007-07-12 00:55:40 +05:00
2007-11-05 20:18:22 +01:00
2008-04-10 15:55:37 -04:00
2008-07-11 04:51:58 +05:00
2008-03-29 17:50:46 +02:00
2008-03-18 16:38:12 +04:00
2008-10-02 13:10:06 +05:00
2008-01-23 13:26:41 -07:00
2007-07-05 18:24:48 +03:00
2008-10-15 12:06:44 +02:00
2007-07-01 15:33:28 -07:00
2008-09-16 13:16:41 +02:00
2007-07-01 15:33:28 -07:00