1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-01 01:04:50 +03:00

More single-quote fixes.

This commit is contained in:
Bruce Momjian 2000-05-09 18:30:43 +00:00
parent 4108ee962a
commit 3b5338da25

View File

@ -1,5 +1,5 @@
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/plperl.sgml,v 2.3 2000/03/31 06:17:21 thomas Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/plperl.sgml,v 2.4 2000/05/09 18:30:43 momjian Exp $
--> -->
<chapter id="pl-perl"> <chapter id="pl-perl">
@ -101,7 +101,7 @@ SELECT name, totalcomp(basesalary, bonus) from employee
<programlisting> <programlisting>
CREATE FUNCTION empcomp(employee) returns int4 CREATE FUNCTION empcomp(employee) returns int4
AS 'my $emp = shift; AS 'my $emp = shift;
return $emp->{'basesalary'} + $emp->{'bonus'};' return $emp->{''basesalary''} + $emp->{''bonus''};'
LANGUAGE 'plperl'; LANGUAGE 'plperl';
</programlisting> </programlisting>
A tuple is passed as a reference to hash. The keys are the names of A tuple is passed as a reference to hash. The keys are the names of