Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbdb8b39

Browse files
committed
This patch clarifies the usage of references in PL/Perl :)
David Fetter
1 parenta1ce88a commitbdb8b39

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎doc/src/sgml/plperl.sgml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.28 2004/09/20 22:48:25 tgl Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/plperl.sgml,v 2.29 2004/10/15 16:51:48 momjian Exp $
33
-->
44

55
<chapter id="plperl">
@@ -260,7 +260,9 @@ composite types.
260260
</para>
261261

262262
<para>
263-
Here is an example of a PL/Perl function returning a rowset of a row type:
263+
Here is an example of a PL/Perl function returning a rowset of a
264+
row type. Note that a composite type is always represented as a
265+
hash reference.
264266
<programlisting>
265267
CREATE TABLE test (
266268
i int,
@@ -305,7 +307,10 @@ $$ LANGUAGE plperl;
305307
</para>
306308

307309
<para>
308-
Here is an example of a PL/Perl function returning a rowset of a composite type.
310+
Here is an example of a PL/Perl function returning a rowset of a
311+
composite type. As a rowset is always a reference to an array
312+
and a composite type is always a reference to a hash, a rowset of a
313+
composite type is a reference to an array of hash references.
309314
<programlisting>
310315
CREATE TYPE testsetperl AS (f1 integer, f2 text, f3 text);
311316

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp