pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Documentation errors in Programmers guide, chapter 4.
2+ messages / 2 participants
[nested] [flat]

* Documentation errors in Programmers guide, chapter 4.
@ 2001-02-20 22:29 Dan Merillat <harik@chaos.ao.net>
  2001-02-23 20:17 ` Re: Documentation errors in Programmers guide, chapter 4. Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Dan Merillat @ 2001-02-20 22:29 UTC (permalink / raw)
  To: pgsql-docs


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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Documentation errors in Programmers guide, chapter 4.
  2001-02-20 22:29 Documentation errors in Programmers guide, chapter 4. Dan Merillat <harik@chaos.ao.net>
@ 2001-02-23 20:17 ` Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Bruce Momjian @ 2001-02-23 20:17 UTC (permalink / raw)
  To: Dan Merillat <harik@chaos.ao.net>; +Cc: pgsql-docs

Looks like this has been fixed.  Can you check the development
documentation on the web site.

> 
> 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
> 
> 


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-02-23 20:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-20 22:29 Documentation errors in Programmers guide, chapter 4. Dan Merillat <harik@chaos.ao.net>
2001-02-23 20:17 ` Bruce Momjian <pgman@candle.pha.pa.us>

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