pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: PGSQL-SQL <pgsql-sql@postgresql.org>
Subject: casting interval to time
Date: Mon, 16 Jun 2003 15:51:35 +0200
Message-ID: <3EEDCB67.4090504@klaster.net> (raw)

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





view thread (8+ messages)  latest in thread

Message-ID: <3EEDCB67.4090504@klaster.net>
Permalink:  ../3EEDCB67.4090504@klaster.net/
Also on:    postgresql.org/message-id/3EEDCB67.4090504@klaster.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jasiek@klaster.net
  Subject: Re: casting interval to time
  In-Reply-To: <3EEDCB67.4090504@klaster.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox