pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Merillat <harik@chaos.ao.net>
To: pgsql-docs@postgresql.org
Subject: Documentation errors in Programmers guide, chapter 4.
Date: Tue, 20 Feb 2001 17:29:17 -0500
Message-ID: <200102202229.f1KMTH126085@vulpine.ao.net> (raw)


The following more interesting example takes a single argument of type EMP, and retrieves multiple results: 

select function hobbies (EMP) returns set of HOBBIES
    as 'select (HOBBIES.all) from HOBBIES
        where $1.name = HOBBIES.person'
    language 'sql';

Should be:

create function hobbies (EMP) returns setof HOBBIES ...

It took me quite a while to figure out the second error, since "set of"
seemed perfectly natural there, when in fact it is "setof".

Thanks,

--Dan




view thread (2+ messages)  latest in thread

Message-ID: <200102202229.f1KMTH126085@vulpine.ao.net>
Permalink:  ../200102202229.f1KMTH126085@vulpine.ao.net/
Also on:    postgresql.org/message-id/200102202229.f1KMTH126085@vulpine.ao.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: harik@chaos.ao.net
  Subject: Re: Documentation errors in Programmers guide, chapter 4.
  In-Reply-To: <200102202229.f1KMTH126085@vulpine.ao.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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