Skip to content

Commit 6d932df

Browse files
committed
Insert line breaks in two places in SQL functions documentation.
This avoids a formatting problem in the PDF output. In the HTML output this isn't necessary, but we've done similar things elsewhere in the documentation so I think it's OK to do it here, too. I've refrained from breaking a longish error message which also causes problems for the PDF output, because that would make the HTML output look wrong. Erik Rijkers
1 parent 4384a95 commit 6d932df

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/src/sgml/xfunc.sgml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.147 2010/05/16 03:55:41 rhaas Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.148 2010/05/16 04:35:04 rhaas Exp $ -->
22

33
<sect1 id="xfunc">
44
<title>User-Defined Functions</title>
@@ -859,7 +859,8 @@ SELECT * FROM getfoo(1) AS t1;
859859
output parameters, like this:
860860

861861
<programlisting>
862-
CREATE FUNCTION sum_n_product_with_tab (x int, OUT sum int, OUT product int) RETURNS SETOF record AS $$
862+
CREATE FUNCTION sum_n_product_with_tab (x int, OUT sum int, OUT product int)
863+
RETURNS SETOF record AS $$
863864
SELECT $1 + tab.y, $1 * tab.y FROM tab;
864865
$$ LANGUAGE SQL;
865866
</programlisting>
@@ -957,7 +958,8 @@ SELECT name, listchildren(name) FROM nodes;
957958
done this way:
958959

959960
<programlisting>
960-
CREATE FUNCTION sum_n_product_with_tab (x int) RETURNS TABLE(sum int, product int) AS $$
961+
CREATE FUNCTION sum_n_product_with_tab (x int)
962+
RETURNS TABLE(sum int, product int) AS $$
961963
SELECT $1 + tab.y, $1 * tab.y FROM tab;
962964
$$ LANGUAGE SQL;
963965
</programlisting>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy