From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: klt@fsfe.org
To: pgsql-docs@postgresql.org
Subject: Re: Bad return type in example
Date: Fri, 9 Jun 2017 19:51:25 -0400
Message-ID: <2e439e4b-5033-29e7-eec3-2651fb53c9e6@2ndquadrant.com> (raw)
In-Reply-To: <f37673c3-8786-b493-e244-93b7dc28028e@fsfe.org>
References: <f37673c3-8786-b493-e244-93b7dc28028e@fsfe.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-docs>
On 3/8/17 04:00, Nikolaus Thiel wrote:
> * postgresql-9.6-A4.pdf, page 891
> * https://www.postgresql.org/docs/9.6/static/xfunc-sql.html#XFUNC-SQL-BASE-FUNCTIONS
>
> Dear Doc Writers,
>
> Would it not be better to change the return type of the following two
> sample functions to numeric ?
fixed
>
>
> CREATE FUNCTION tf1 (accountno integer, debit numeric) RETURNS integer AS $$
> UPDATE bank
> SET balance = balance - debit
> WHERE accountno = tf1.accountno;
> SELECT balance FROM bank WHERE accountno = tf1.accountno;
> $$ LANGUAGE SQL;
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
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: peter.eisentraut@2ndquadrant.com, klt@fsfe.org
Subject: Re: Bad return type in example
In-Reply-To: <2e439e4b-5033-29e7-eec3-2651fb53c9e6@2ndquadrant.com>
* 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