Re: Problems with PLPGSQL

From: Alex <alex(at)meerkatsoft(dot)com>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problems with PLPGSQL
Date: 2003-11-06 10:00:59
Message-ID: 3FAA1BDB.1030609@meerkatsoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2003-11-06 10:39:25 Re: Problems with PLPGSQL
Previous Message Richard Huxton 2003-11-06 09:33:56 Re: Database Design & Application Server Design