Re: Problems with PLPGSQL - Mailing list pgsql-general

From Alex
Subject Re: Problems with PLPGSQL
Date
Msg-id 3FAA1BDB.1030609@meerkatsoft.com
Whole thread Raw
In response to Re: Problems with PLPGSQL  (Richard Huxton <dev@archonet.com>)
Responses Re: Problems with PLPGSQL  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Re: Problems with PLPGSQL  (Richard Huxton <dev@archonet.com>)
List pgsql-general
Hi Richard,
as for the timestamp, both ways work fine, but the other problem still
exists. using a
''60 Min'' works just fine, but WHERE job_end + ($1::text || '' Min'' )
 > now
does not.  job_end is timestamp without tz

Alex

Richard Huxton wrote:

>On Thursday 06 November 2003 04:13, Alex wrote:
>
>
>>Hi,
>>I have a problem with quoting  in one of my functions:
>>
>>now TIMESTAMP := ''now'';
>>
>>
>
>Your main question has been answered, but you might want now() rather than
>''now''. Off the top of my head, I think the ''now'' might get compiled as a
>value on the first run and stay at that value.
>
>
>



pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Database Design & Application Server Design
Next
From: Pavel Stehule
Date:
Subject: Re: Problems with PLPGSQL