| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk> |
| Cc: | "pgsql-sql" <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: pl/pgsql - code review + question |
| Date: | 2001-07-18 16:29:50 |
| Message-ID: | 5407.995473790@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk> writes:
> My problem now is that when I include the code to handle the record
> not being there, from the pgsql chapter (section 23.2.3.3) I get the
> following errors based of the function below.
IIRC, there's an erroneous example in the 7.1 plpgsql documentation:
RAISE doesn't actually accept an expression for its string parameter,
only a literal (and only simple variables for the additional
parameters). So you need to write something like
raise exception ''Member % not found'', unitno;
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fons Rave | 2001-07-18 16:37:49 | Records exactly the same. |
| Previous Message | Richard Huxton | 2001-07-18 16:24:27 | Re: pl/pgsql - code review + question |