From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Philip Hallstrom <philip@adhesivemedia.com>
Cc: pgsql-docs@postgresql.org
Subject: Re: Minor errors in plpgsql and plperl examples..
Date: Tue, 9 May 2000 14:25:41 -0400 (EDT)
Message-ID: <200005091825.OAA27039@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.21.0005091104440.81770-100000@illiad.adhesivemedia.com>
I have fixed both of these in the current sources. Thanks much.
> Hi -
>
> There are two errors involving single quotes in the following documents.
>
> http://www.postgresql.org/docs/user/c40874340.htm
> - In the code for "PL/pgSQL Trigger Procedure" the initial single quote is
> missing. Currently the line reads:
>
> CREATE FUNCTION emp_stamp () RETURNS OPAQUE AS
>
> All the other examples have a single quote right after "AS".
>
>
>
> http://www.postgresql.org/docs/user/pl-perl4538.htm
> - The last example is:
>
> CREATE FUNCTION empcomp(employee) returns int4
> AS 'my $emp = shift;
> return $emp->{'basesalary'} + $emp->{'bonus'};'
> LANGUAGE 'plperl';
>
>
> Shouldn't the single quotes on the "return" line be escaped?
>
>
> (i've never used postgresql so maybe this is all incorrect, but just
> reading through the docs -- which are very very nice btw)
>
> -philip
>
>
--
Bruce Momjian | http://www.op.net/~candle
pgman@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
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-docs@postgresql.org
Cc: pgman@candle.pha.pa.us, philip@adhesivemedia.com
Subject: Re: Minor errors in plpgsql and plperl examples..
In-Reply-To: <200005091825.OAA27039@candle.pha.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