interval syntax change from 7.1.2 to 7.2.1?

From: Jinn Koriech <jinn(at)idealint(dot)co(dot)uk>
To: PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org>
Subject: interval syntax change from 7.1.2 to 7.2.1?
Date: 2002-07-22 16:49:34
Message-ID: 1027356574.1144.9.camel@morph.magiclamp.2y.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


hi - i recently upgraded my server from 7.1.2 to 7.2.1 and now one of my
apps is no longer functioning. this is the query:

SELECT DISTINCT rate, sum(extract(epoch from interval (end_time -
start_time)))/3600) AS duration
FROM log
WHERE invoice_state='8'
GROUP BY rate HAVING rate > 0

where 'end_time' and 'start_time' are columns in table 'log'

the reported message is:

PostgreSQL said: ERROR: parser: parse error at or near "end_time"

any help greatly appreciated.

jinn

Browse pgsql-sql by date

  From Date Subject
Next Message Jinn Koriech 2002-07-22 16:58:47 interval syntax change from 7.1.2 to 7.2.1?
Previous Message Josh Berkus 2002-07-22 16:27:45 Re: Editor for pgsql