Received: from pugsly.m1group.com.au (unknown [144.135.2.168]) by postgresql.org (Postfix) with ESMTP id 15626474E49 for ; Tue, 16 Jul 2002 22:13:59 -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 g6H21cv27910 for ; Wed, 17 Jul 2002 10:01:38 +0800 From: Aaron Spiteri Date: Wed, 17 Jul 2002 02:10:56 GMT Message-ID: <20020717.2105600@scooby.m1group.com.au> Subject: SQL date calculation problem 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= "------------=_4D4800B8B71C093434F8" Content-Transfer-Encoding: 7bit X-Archive-Number: 200207/227 X-Sequence-Number: 4912 --------------=_4D4800B8B71C093434F8 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 --------------=_4D4800B8B71C093434F8 Content-Description: filename="text1.html" Content-Type: text/html Content-Transfer-Encoding: quoted-printable SQL date calculation problem

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

--------------=_4D4800B8B71C093434F8--