pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Minor errors in plpgsql and plperl examples..
2+ messages / 2 participants
[nested] [flat]

* Minor errors in plpgsql and plperl examples..
@ 2000-05-09 18:08 Philip Hallstrom <philip@adhesivemedia.com>
  2000-05-09 18:25 ` Re: Minor errors in plpgsql and plperl examples.. Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Philip Hallstrom @ 2000-05-09 18:08 UTC (permalink / raw)
  To: pgsql-docs

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  




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Minor errors in plpgsql and plperl examples..
  2000-05-09 18:08 Minor errors in plpgsql and plperl examples.. Philip Hallstrom <philip@adhesivemedia.com>
@ 2000-05-09 18:25 ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2000-05-09 18:25 UTC (permalink / raw)
  To: Philip Hallstrom <philip@adhesivemedia.com>; +Cc: pgsql-docs

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-05-09 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-05-09 18:08 Minor errors in plpgsql and plperl examples.. Philip Hallstrom <philip@adhesivemedia.com>
2000-05-09 18:25 ` Bruce Momjian <pgman@candle.pha.pa.us>

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