From: Richard Huxton <dev@archonet.com>
To: Gary Stainburn <gary.stainburn@ringways.co.uk>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: pl/pgsql - code review + question
Date: Wed, 18 Jul 2001 17:24:27 +0100
Message-ID: <002301c10fa6$1f176820$1001a8c0@archonet.com> (raw)
References: <01071815102309.11978@gary.ringways.co.uk>
<0107181624100B.11978@gary.ringways.co.uk>
From: "Gary Stainburn" <gary.stainburn@ringways.co.uk>
> 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
Hey - stop that! If everyone starts reading the docs and quoting chapter
refs all we'll be left with are *difficult* questions ;-)
> based of the function below. Can anyone explain why the concat of the
string
> is failing. If I simply "raise exception ''member not found''" all works
fine.
Yep - this one keeps getting me too.
> raise exception ''Member '' || unitno || '' not found'';
RAISE EXCEPTION ''Member % not found'', unitno;
Don't know why the parser for RAISE doesn't like string concat. Possibly
because it maps to the elog() error-reporting function underneath.
- Richard Huxton
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: dev@archonet.com, gary.stainburn@ringways.co.uk
Subject: Re: pl/pgsql - code review + question
In-Reply-To: <002301c10fa6$1f176820$1001a8c0@archonet.com>
* 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