Skip site navigation (1) Skip section navigation (2)

Minor errors in plpgsql and plperl examples..

From: Philip Hallstrom <philip(at)adhesivemedia(dot)com>
To: pgsql-docs(at)postgresql(dot)org
Subject: Minor errors in plpgsql and plperl examples..
Date: 2000-05-09 18:08:56
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
Hi -

There are two errors involving single quotes in the following documents.
- In the code for "PL/pgSQL Trigger Procedure" the initial single quote is
missing.  Currently the line reads:


All the other examples have a single quote right after "AS".
- 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)



pgsql-docs by date

Next:From: Bruce MomjianDate: 2000-05-09 18:25:41
Subject: Re: Minor errors in plpgsql and plperl examples..
Previous:From: PICAVET REGISDate: 2000-05-09 16:02:41
Subject: looking for doc for ecpg

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group