Skip site navigation (1) Skip section navigation (2)

Re: BUG #1517: SQL interval syntax is accepted by the parser,

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Roy Badami <roy(at)gnomon(dot)org(dot)uk>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1517: SQL interval syntax is accepted by the parser,
Date: 2005-03-24 14:52:01
Message-ID: 26541.1111675921@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Roy Badami <roy(at)gnomon(dot)org(dot)uk> writes:
> 	test=> select interval '1 hour 1 minute';
> 	 interval
> 	----------
> 	 01:01:00
> 	(1 row)

> Hmm, I don't think I really like having a seconds field in the output,
> given that the column is by definition only storing data to a
> precision of a minute.

Leaving out the seconds would make the display ambiguous.

			regards, tom lane

In response to

Responses

pgsql-bugs by date

Next:From: Ingolf KnopfDate: 2005-03-24 15:31:37
Subject: BUG #1561: wrong detection of number of parameters in java.sql.PreparedStatement
Previous:From: Joerg ErtlDate: 2005-03-24 10:54:37
Subject: BUG #1560: Service does not start

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group