Minor errors in plpgsql and plperl examples..

Поиск
Список
Период
Сортировка
От Philip Hallstrom
Тема Minor errors in plpgsql and plperl examples..
Дата
Msg-id Pine.BSF.4.21.0005091104440.81770-100000@illiad.adhesivemedia.com
обсуждение исходный текст
Ответы Re: Minor errors in plpgsql and plperl examples..
Список 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


В списке pgsql-docs по дате отправления:

Предыдущее
От: "PICAVET REGIS"
Дата:
Сообщение: looking for doc for ecpg
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Minor errors in plpgsql and plperl examples..