Re: I must be blind...

From: Joe Conway <mail(at)joeconway(dot)com>
To: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: I must be blind...
Date: 2002-06-14 17:47:40
Message-ID: 3D0A2C3C.8020504@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Nigel J. Andrews wrote:
<snip>
> dirn ALIAS FOR $4;
> time ALIAS FOR $5;
> status ALIAS FOR $6;
> BEGIN
> -- check against order
> PERFORM
> SELECT 1
> FROM orders
> WHERE
> id = ordid
> AND
> direction = dirn;
> IF NOT FOUND THEN
</snip>

I don't think you can use PERFORM like that. Try:

<snip>
dirn ALIAS FOR $4;
time ALIAS FOR $5;
status ALIAS FOR $6;
buf INT;
BEGIN
-- check against order
SELECT 1 INTO buf
FROM orders
WHERE
id = ordid
AND
direction = dirn;
IF NOT FOUND THEN
</snip>

HTH,

Joe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-06-14 18:12:13 Re: I must be blind...
Previous Message Gavin M. Roy 2002-06-14 17:36:45 Re: Store / Retrieve image files

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-06-14 18:12:13 Re: I must be blind...
Previous Message Nigel J. Andrews 2002-06-14 17:23:23 Re: I must be blind...