Re: plpgsql FOUND Variable

From: Alex <alex(at)meerkatsoft(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: plpgsql FOUND Variable
Date: 2003-08-28 03:08:16
Message-ID: 3F4D7220.8030606@meerkatsoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom,
I am using 7.3.4

The problem

_tmpRec = RECORD;
_name = VARCHAR;

SELECT INTO _tmpRec * FROM address WHERE name = _name AND status = ''1''
AND last_name NOTNULL
IF FOUND THEN
RETURN ''found'';
ELSE ....

Above Query does not produce any results. Executed in psql result = 0
rows. However I do get the return string "found" back.

Alex

Tom Lane wrote:

>Alex <alex(at)meerkatsoft(dot)com> writes:
>
>
>>when I run a SELECT INTO and the result is 0 or zero row, then I still
>>get a positive result if
>>using IF FOUND THEN....
>>
>>
>
>I recall Neil Conway fixed some problems with FOUND a version or two
>back. If you are not on 7.3.*, update. If you are, let's see the
>details.
>
> regards, tom lane
>
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2003-08-28 03:17:31 Re: SQL Command - To List Tables ?
Previous Message Tom Lane 2003-08-28 02:58:09 Re: SQL Command - To List Tables ?