Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b1f7cc

Browse files
committed
The trim function doc did not say that the second argument could be
be omitted. This patch fixes that. It also fixes a bug where the type text was not wrapped as <type>text</type>.
1 parent f503b6a commit 0b1f7cc

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

doc/src/sgml/func.sgml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.189 2004/02/29 15:45:53 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.190 2004/03/04 20:09:29 dennis Exp $
33
PostgreSQL documentation
44
-->
55

@@ -1157,11 +1157,13 @@ PostgreSQL documentation
11571157
</row>
11581158

11591159
<row>
1160-
<entry><literal><function>ltrim</function>(<parameter>string</parameter> <type>text</type>, <parameter>characters</parameter> <type>text</type>)</literal></entry>
1160+
<entry><literal><function>ltrim</function>(<parameter>string</parameter> <type>text</type>
1161+
<optional>, <parameter>characters</parameter> <type>text</type></optional>)</literal>
1162+
</entry>
11611163
<entry><type>text</type></entry>
11621164
<entry>
11631165
Remove the longest string containing only characters from
1164-
<parameter>characters</parameter> from the start of
1166+
<parameter>characters</parameter> (a space by default) from the start of
11651167
<parameter>string</parameter>.
11661168
</entry>
11671169
<entry><literal>ltrim('zzzytrim', 'xyz')</literal></entry>
@@ -1255,12 +1257,13 @@ PostgreSQL documentation
12551257
</row>
12561258

12571259
<row>
1258-
<entry><literal><function>rtrim</function>(<parameter>string</parameter>
1259-
text, <parameter>characters</parameter> text)</literal></entry>
1260+
<entry><literal><function>rtrim</function>(<parameter>string</parameter> <type>text</type>
1261+
<optional>, <parameter>characters</parameter> <type>text</type></optional>)</literal>
1262+
</entry>
12601263
<entry><type>text</type></entry>
12611264
<entry>
12621265
Remove the longest string containing only characters from
1263-
<parameter>characters</parameter> from the end of
1266+
<parameter>characters</parameter> (a space by default) from the end of
12641267
<parameter>string</parameter>.
12651268
</entry>
12661269
<entry><literal>rtrim('trimxxxx', 'x')</literal></entry>

0 commit comments

Comments
 (0)