pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gary Stainburn <gary.stainburn@ringways.co.uk>
Cc: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: pl/pgsql - code review + question
Date: Wed, 18 Jul 2001 12:29:50 -0400
Message-ID: <5407.995473790@sss.pgh.pa.us> (raw)
In-Reply-To: <0107181624100B.11978@gary.ringways.co.uk>
References: <01071815102309.11978@gary.ringways.co.uk>
	<0107181624100B.11978@gary.ringways.co.uk>

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



view thread (14+ messages)  latest in thread

Message-ID: <5407.995473790@sss.pgh.pa.us>
Permalink:  ../5407.995473790@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5407.995473790@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gary.stainburn@ringways.co.uk
  Subject: Re: pl/pgsql - code review + question
  In-Reply-To: <5407.995473790@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox