Time conversion > 24 hours returns zero
Posted: 03.07.2008, 16:02
Hi All,
I've tested following query on the MySQL Query Browser:
SELECT SEC_TO_TIME(86500);
which returns 24:01:40 (as it should be).
Now if I set up a simple Delphi form with following components: ZConnection --> ZQuery --> Datasource --> DBGrid
and execute the same query it returns 00:00:00 in the DBGrid. (values lower then 86400 are calculated correctly).
Is it an overflow occuring in the Zeos component or can't the DBGrid cope with time values greater then 24 hours?
I'm using Delphi 7 and Zeos 6.6.2-RC
Thanks for your help,
Jona
I've tested following query on the MySQL Query Browser:
SELECT SEC_TO_TIME(86500);
which returns 24:01:40 (as it should be).
Now if I set up a simple Delphi form with following components: ZConnection --> ZQuery --> Datasource --> DBGrid
and execute the same query it returns 00:00:00 in the DBGrid. (values lower then 86400 are calculated correctly).
Is it an overflow occuring in the Zeos component or can't the DBGrid cope with time values greater then 24 hours?
I'm using Delphi 7 and Zeos 6.6.2-RC
Thanks for your help,
Jona