Re: Missing RETURNS clause in function declaration

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ivan(dot)ciobotar(at)gmail(dot)com
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Missing RETURNS clause in function declaration
Date: 2017-06-19 16:01:42
Message-ID: 861.1497888102@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

ivan(dot)ciobotar(at)gmail(dot)com writes:
> On page https://www.postgresql.org/docs/9.6/static/plpgsql-porting.html, the
> statement starting with CREATE OR REPLACE FUNCTION cs_parse_url (towards the
> middle of the page) is missing the RETURNS clause.

That's fine --- the OUT parameters implicitly define the return type.

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message gerardmatt 2017-06-21 08:39:40 nothing ever works
Previous Message ivan.ciobotar 2017-06-19 13:20:36 Missing RETURNS clause in function declaration