Re: [BUGS] Bug #443: Problem with time functions.

2001-09-16 Thread Thomas Lockhart
> > Hmm. The underlying math works: ... > "Works" is in the eye of the beholder, perhaps. Of course ;) > ... I would think that the > difference of two times should be an interval (which would allow the > sum() to work, since we have sum(interval)). But there is no > time-minus-time operator.

Re: [BUGS] Bug #443: Problem with time functions.

2001-09-16 Thread Tom Lane
Thomas Lockhart <[EMAIL PROTECTED]> writes: >> timetest=# select sum(timeend-timebegin) as totaltime from timetest; >> ERROR: Unable to select an aggregate function sum(time) > Hmm. The underlying math works: > lockhart=# select time '10:01' - time '10:00'; > -- > 00:01:00 "Works" is

Re: [BUGS] Bug #443: Problem with time functions.

2001-09-11 Thread Thomas Lockhart
> timetest=# select sum(timeend-timebegin) as totaltime from timetest; > ERROR: Unable to select an aggregate function sum(time) Hmm. The underlying math works: lockhart=# select time '10:01' - time '10:00'; -- 00:01:00 lockhart=# select sum(time '10:01' - time '10:00'); ERROR: Unab

[BUGS] Bug #443: Problem with time functions.

2001-09-09 Thread pgsql-bugs
Alessandro Rossi ([EMAIL PROTECTED]>) reports a bug with a severity of 2 The lower the number the more severe it is. Short Description Problem with time functions. Long Description Here is the DB and some sample entries. CREATE TABLE "timetest" ( "id" serial primary key, "timeb