X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id EDC2E30E358 for ; Mon, 16 Jun 2003 13:52:06 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 27949-07 for ; Mon, 16 Jun 2003 10:51:35 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id 0CB9E30DE75 for ; Mon, 16 Jun 2003 10:51:35 -0300 (ADT) Received: from klaster.net (tv126.internetdsl.tpnet.pl [80.55.125.126]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id DD20E2B3D2 for ; Mon, 16 Jun 2003 15:51:21 +0200 (CEST) Message-ID: <3EEDCB67.4090504@klaster.net> Date: Mon, 16 Jun 2003 15:51:35 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: PGSQL-SQL Subject: casting interval to time Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Archive-Number: 200306/140 X-Sequence-Number: 13898 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