Received: from pugsly.m1group.com.au (unknown [144.135.2.168]) by postgresql.org (Postfix) with ESMTP id 47CC2475B0C for ; Tue, 16 Jul 2002 22:22:42 -0400 (EDT) Received: from scooby.m1group.com.au ([192.168.100.96]) by pugsly.m1group.com.au (8.11.2/8.11.0) with SMTP id g6H2ALv28192 for ; Wed, 17 Jul 2002 10:10:21 +0800 From: Aaron Spiteri Date: Wed, 17 Jul 2002 02:19:38 GMT Message-ID: <20020717.2193800@scooby.m1group.com.au> Subject: TIMEDATE calculation To: pgsql-admin@postgresql.org Reply-To: Aaron Spiteri X-Mailer: Mozilla/3.0 (compatible; StarOffice/5.2;Linux) X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary= "------------=_4D4800BA10080A16E150" Content-Transfer-Encoding: 7bit X-Archive-Number: 200207/225 X-Sequence-Number: 4910 --------------=_4D4800BA10080A16E150 Content-Description: filename="text1.txt" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all, I using postgresql 7.1.3 on RH 7.2 server. I am having trouble with=20 TIMEDATE calculation using the pgplsql procedural language the logic is=20 has follows: FOR r IN SELECT time_span FROM t WHERE name =3D ''NEW'' LOOP NEW.end_date :=3D r.time_span + now(); END LOOP; When I try running this routine I get an error "Bad timestamp external=20 representation '11:39:09' ". This routine ran in previous versions of=20 postgresql does any one have any ideas.=20 --------------=_4D4800BA10080A16E150 Content-Description: filename="text1.html" Content-Type: text/html Content-Transfer-Encoding: quoted-printable TIMEDATE calculation

Hi all,

I using postgresql 7.1.3 on RH 7.2 server. I am having trouble with TIMEDATE calculation using the pgplsql procedural language the logic is has follows:

FOR r IN SELECT time_span FROM t WHERE name =3D ''NEW'' LOOP

NEW.end_date :=3D r.time_span + now();

END LOOP;

When I try running this routine I get an error "Bad timestamp external representation '11:39:09' ". This routine ran in previous versions of postgresql does any one have any ideas.=20

--------------=_4D4800BA10080A16E150--