error - Mailing list pgsql-docs

From PG Doc comments form
Subject error
Date
Msg-id 155378429268.9814.15793833671806862761@wrigleys.postgresql.org
Whole thread Raw
Responses Re: error  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.6/xfunc-sql.html
Description:

> hello
> 
> i've descovered a small error - instead of integer should be numeric
> 
> https://www.postgresql.org/docs/9.6/xfunc-sql.html 
> 
> 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;

pgsql-docs by date:

Previous
From: Liudmila Mantrova
Date:
Subject: improve examples for JSON functions
Next
From: Peter Eisentraut
Date:
Subject: Re: First SVG graphic