Commit 91cf5ef5 authored by Bruce Momjian's avatar Bruce Momjian

Document that btrim()'s second parameter is optional, and defaults to spaces.

parent 40b6d689
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.225 2004/12/01 19:32:12 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.226 2004/12/02 17:14:54 momjian Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -1070,12 +1070,13 @@ PostgreSQL documentation ...@@ -1070,12 +1070,13 @@ PostgreSQL documentation
</row> </row>
<row> <row>
<entry><literal><function>btrim</function>(<parameter>string</parameter> <type>text</type>, <parameter>characters</parameter> <type>text</type>)</literal></entry> <entry><literal><function>btrim</function>(<parameter>string</parameter> <type>text</type>
<optional>, <parameter>characters</parameter> <type>text</type></optional>)</literal></entry>
<entry><type>text</type></entry> <entry><type>text</type></entry>
<entry> <entry>
Remove the longest string consisting only of characters Remove the longest string consisting only of characters
in <parameter>characters</parameter> from the start and end of in <parameter>characters</parameter> (or spaces if not supplied)
<parameter>string</parameter>. from the start and end of <parameter>string</parameter>.
</entry> </entry>
<entry><literal>btrim('xyxtrimyyx', 'xy')</literal></entry> <entry><literal>btrim('xyxtrimyyx', 'xy')</literal></entry>
<entry><literal>trim</literal></entry> <entry><literal>trim</literal></entry>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment