|
Probleme mit TIMEDIFF() ab MySQL 5.0
Hallo,
ich hab hier ein Problem mit MySQL und der Funktion TIMEDIFF().
In MySQL 4.1 hat folgendes Statement noch wunderbar funktioniert:
"SELECT TIMEDIFF ('2008-01-07 12:00:00', '2007-01-07 12:05:00');"
Ergebnis:
+--------------------------------------------------------+
| timediff('2008-01-07 12:00:00', '2007-01-07 12:05:00') |
+--------------------------------------------------------+
| 8759:55:00 |
+--------------------------------------------------------+
1 row in set (0.00 sec)
Seit 5.0 bekomm ich nur noch 838:59:59 als Ergebnis.
In der Doku von MySQL bin ich dann drauf gestossen das 838:59:59 der maximale Wert eines MySQL TIME-Typs ist. Das heißt ich kann keine Zeitdifferenz errechnen von Daten die mehr als 34 Tage auseinander liegen.
Ich hab jetz schon mehrere Versionen probiert 5.0.xx, 5.1.22, 6.0.3alpha.
Gibt es irgendeinen Trick das ganze zu umgehen uoder zu "erweitern"?
__________________
Lesser known Programming Languages #13: SLOBOL
... Although many compilers allow you to take a coffee break while they compile, SLOBOL compilers allow you to travel to Bolivia to pick the coffee. Forty-three programmers are known to have died of boredom sitting at their terminals while waiting for a SLOBOL program to compile. Weary SLOBOL programmers often turn to a related (but infinitely faster) language, COCAINE.
|