mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
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
This commit is contained in:
parent
4384a95a57
commit
6d932df652
@ -1,4 +1,4 @@
|
|||||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.147 2010/05/16 03:55:41 rhaas Exp $ -->
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/xfunc.sgml,v 1.148 2010/05/16 04:35:04 rhaas Exp $ -->
|
||||||
|
|
||||||
<sect1 id="xfunc">
|
<sect1 id="xfunc">
|
||||||
<title>User-Defined Functions</title>
|
<title>User-Defined Functions</title>
|
||||||
@ -859,7 +859,8 @@ SELECT * FROM getfoo(1) AS t1;
|
|||||||
output parameters, like this:
|
output parameters, like this:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
CREATE FUNCTION sum_n_product_with_tab (x int, OUT sum int, OUT product int) RETURNS SETOF record AS $$
|
CREATE FUNCTION sum_n_product_with_tab (x int, OUT sum int, OUT product int)
|
||||||
|
RETURNS SETOF record AS $$
|
||||||
SELECT $1 + tab.y, $1 * tab.y FROM tab;
|
SELECT $1 + tab.y, $1 * tab.y FROM tab;
|
||||||
$$ LANGUAGE SQL;
|
$$ LANGUAGE SQL;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
@ -957,7 +958,8 @@ SELECT name, listchildren(name) FROM nodes;
|
|||||||
done this way:
|
done this way:
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
CREATE FUNCTION sum_n_product_with_tab (x int) RETURNS TABLE(sum int, product int) AS $$
|
CREATE FUNCTION sum_n_product_with_tab (x int)
|
||||||
|
RETURNS TABLE(sum int, product int) AS $$
|
||||||
SELECT $1 + tab.y, $1 * tab.y FROM tab;
|
SELECT $1 + tab.y, $1 * tab.y FROM tab;
|
||||||
$$ LANGUAGE SQL;
|
$$ LANGUAGE SQL;
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user