Re: pl/pgsql - code review + question - Mailing list pgsql-sql

From Tom Lane
Subject Re: pl/pgsql - code review + question
Date
Msg-id 5407.995473790@sss.pgh.pa.us
Whole thread Raw
In response to Re: pl/pgsql - code review + question  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
List pgsql-sql
Gary Stainburn <gary.stainburn@ringways.co.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


pgsql-sql by date:

Previous
From: "Richard Huxton"
Date:
Subject: Re: pl/pgsql - code review + question
Next
From: Stephan Szabo
Date:
Subject: Re: What is the syntax turn off auto commit?