Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d932df

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 thisisn't necessary, but we've done similar things elsewhere in the documentationso I think it's OK to do it here, too. I've refrained from breaking a longisherror message which also causes problems for the PDF output, because that wouldmake the HTML output look wrong.Erik Rijkers
1 parent4384a95 commit6d932df

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/1603:55:41 rhaas Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.148 2010/05/1604: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)

[8]ページ先頭

©2009-2025 Movatter.jp