Skip to content

Commit 48f3d77

Browse files
committed
replace use of predefined perl vars $a and $b with $x and $y - per Greg Sabino Mullane
1 parent a33fadf commit 48f3d77

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

doc/src/sgml/plperl.sgml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.46 2005/10/12 14:28:33 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.47 2005/10/18 22:53:54 adunstan Exp $
33
-->
44

55
<chapter id="plperl">
@@ -118,14 +118,14 @@ $$ LANGUAGE plperl;
118118

119119
<programlisting>
120120
CREATE FUNCTION perl_max (integer, integer) RETURNS integer AS $$
121-
my ($a,$b) = @_;
122-
if (! defined $a) {
123-
if (! defined $b) { return undef; }
124-
return $b;
121+
my ($x,$y) = @_;
122+
if (! defined $x) {
123+
if (! defined $y) { return undef; }
124+
return $y;
125125
}
126-
if (! defined $b) { return $a; }
127-
if ($a &gt; $b) { return $a; }
128-
return $b;
126+
if (! defined $y) { return $x; }
127+
if ($x &gt; $y) { return $x; }
128+
return $y;
129129
$$ LANGUAGE plperl;
130130
</programlisting>
131131
As shown above, to return an SQL null value from a PL/Perl

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy