casting interval to time - Mailing list pgsql-sql

From Tomasz Myrta
Subject casting interval to time
Date
Msg-id 3EEDCB67.4090504@klaster.net
Whole thread Raw
Responses Re: casting interval to time
List pgsql-sql
Hi
psql -V
psql (PostgreSQL) 7.3
SELECT cast(cast('1 day 12 hours' as interval) as time);   time
---------- 12:00:00
(1 row)


psql -V
psql (PostgreSQL) 7.3.2
SELECT cast(cast('1 day 12 hours' as interval) as time);  time
---------- 00:00:00
(1 row)


Did I miss something? I looked into 'history' file, but I couldn't find 
anything interesting about changes in casting interval into time.

I found replacement for this problem, but I wan't just to know what 
happened:
('1970-1-1'::date+some_interval)::time

Regards,
Tomasz Myrta




pgsql-sql by date:

Previous
From: Manfred Koizar
Date:
Subject: Re: Let join syntax
Next
From: Tom Lane
Date:
Subject: Re: Let join syntax