From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alex <alex(at)meerkatsoft(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: plpgsql FOUND Variable |
Date: | 2003-08-28 03:25:39 |
Message-ID: | 16011.1062041139@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Alex <alex(at)meerkatsoft(dot)com> writes:
> 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.
The above query produces a syntax error, because you're missing a
semicolon after the SELECT INTO. If you want help with this, you'll
need to offer an exact example rather than an approximation.
I have just looked at the source code and verified that exec_stmt_select
sets FOUND appropriately, so I'm pretty certain that you've made some
trivial pilot error or other. But without exact details on what you
did, it's unlikely anyone else will guess the mistake.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Alex | 2003-08-28 03:28:47 | Question Join/Subselect |
Previous Message | Bruno Wolff III | 2003-08-28 03:17:31 | Re: SQL Command - To List Tables ? |