Re: interval( 'seconds 27960' ) is broken

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: elein(at)nextbus(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: interval( 'seconds 27960' ) is broken
Date: 2001-05-08 01:46:10
Message-ID: 26364.989286370@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

pgsql-bugs(at)postgresql(dot)org writes:
> In 7.0.3, I'm converting seconds from midnight to a time of
> day using interval ( 'seconds <val>'). This worked fine in
> 7.0.3 and gives a Bad interval external representation message
> in 7.1.

This has never been the intended or documented format; it should
be '<val> seconds'. Allowing both is ambiguous, so I'd say that
the behavior change is a correct one.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Lockhart 2001-05-08 01:57:29 Re: backend dies on 7.1.1 loading large datamodel.
Previous Message Tom Lane 2001-05-08 01:22:59 Paths for C functions (was Re: Re: backend dies on 7.1.1 loading large datamodel.)