|
1534 | 1534 | </entry> |
1535 | 1535 | <entry><type>text</type></entry> |
1536 | 1536 | <entry> |
1537 | | - Remove the longest string containing only the |
| 1537 | + Remove the longest string containing only characters from |
1538 | 1538 | <parameter>characters</parameter> (a space by default) from the |
1539 | | - start/end/both ends of the <parameter>string</parameter> |
| 1539 | + start, end, or both ends (<literal>both</> is the default) |
| 1540 | + of <parameter>string</parameter> |
1540 | 1541 | </entry> |
1541 | | - <entry><literal>trim(both 'x' from 'xTomxx')</literal></entry> |
| 1542 | + <entry><literal>trim(both 'xyz' from 'yxTomxx')</literal></entry> |
1542 | 1543 | <entry><literal>Tom</literal></entry> |
1543 | 1544 | </row> |
1544 | 1545 |
|
|
1547 | 1548 | <literal><function>trim(<optional>leading | trailing |
1548 | 1549 | | both</optional> <optional>from</optional> |
1549 | 1550 | <parameter>string</parameter> |
1550 | | - <optional><parameter>, characters</parameter></optional> |
| 1551 | + <optional>, <parameter>characters</parameter></optional> |
1551 | 1552 | )</function></literal> |
1552 | 1553 | </entry> |
1553 | 1554 | <entry><type>text</type></entry> |
1554 | 1555 | <entry> |
1555 | | - Non-standard version of <function>trim()</> |
| 1556 | + Non-standard syntax for <function>trim()</> |
1556 | 1557 | </entry> |
1557 | | - <entry><literal>trim(both from 'xTomxx', 'x')</literal></entry> |
| 1558 | + <entry><literal>trim(both from 'yxTomxx', 'xyz')</literal></entry> |
1558 | 1559 | <entry><literal>Tom</literal></entry> |
1559 | 1560 | </row> |
1560 | 1561 |
|
|
1626 | 1627 | in <parameter>characters</parameter> (a space by default) |
1627 | 1628 | from the start and end of <parameter>string</parameter> |
1628 | 1629 | </entry> |
1629 | | - <entry><literal>btrim('xyxtrimyyx', 'xy')</literal></entry> |
| 1630 | + <entry><literal>btrim('xyxtrimyyx', 'xyz')</literal></entry> |
1630 | 1631 | <entry><literal>trim</literal></entry> |
1631 | 1632 | </row> |
1632 | 1633 |
|
|
1895 | 1896 | <parameter>characters</parameter> (a space by default) from the start of |
1896 | 1897 | <parameter>string</parameter> |
1897 | 1898 | </entry> |
1898 | | - <entry><literal>ltrim('zzzytrim', 'xyz')</literal></entry> |
1899 | | - <entry><literal>trim</literal></entry> |
| 1899 | + <entry><literal>ltrim('zzzytest', 'xyz')</literal></entry> |
| 1900 | + <entry><literal>test</literal></entry> |
1900 | 1901 | </row> |
1901 | 1902 |
|
1902 | 1903 | <row> |
|
2201 | 2202 | <parameter>characters</parameter> (a space by default) from the end of |
2202 | 2203 | <parameter>string</parameter> |
2203 | 2204 | </entry> |
2204 | | - <entry><literal>rtrim('trimxxxx', 'x')</literal></entry> |
2205 | | - <entry><literal>trim</literal></entry> |
| 2205 | + <entry><literal>rtrim('testxxzx', 'xyz')</literal></entry> |
| 2206 | + <entry><literal>test</literal></entry> |
2206 | 2207 | </row> |
2207 | 2208 |
|
2208 | 2209 | <row> |
@@ -3467,11 +3468,11 @@ SELECT format('Testing %3$s, %2$s, %s', 'one', 'two', 'three'); |
3467 | 3468 | </entry> |
3468 | 3469 | <entry><type>bytea</type></entry> |
3469 | 3470 | <entry> |
3470 | | - Remove the longest string containing only the bytes in |
| 3471 | + Remove the longest string containing only bytes appearing in |
3471 | 3472 | <parameter>bytes</parameter> from the start |
3472 | 3473 | and end of <parameter>string</parameter> |
3473 | 3474 | </entry> |
3474 | | - <entry><literal>trim(E'\\000'::bytea from E'\\000Tom\\000'::bytea)</literal></entry> |
| 3475 | + <entry><literal>trim(E'\\000\\001'::bytea from E'\\000Tom\\001'::bytea)</literal></entry> |
3475 | 3476 | <entry><literal>Tom</literal></entry> |
3476 | 3477 | </row> |
3477 | 3478 | </tbody> |
@@ -3510,11 +3511,11 @@ SELECT format('Testing %3$s, %2$s, %s', 'one', 'two', 'three'); |
3510 | 3511 | </entry> |
3511 | 3512 | <entry><type>bytea</type></entry> |
3512 | 3513 | <entry> |
3513 | | - Remove the longest string consisting only of bytes |
3514 | | - in <parameter>bytes</parameter> from the start and end of |
| 3514 | + Remove the longest string containing only bytes appearing in |
| 3515 | + <parameter>bytes</parameter> from the start and end of |
3515 | 3516 | <parameter>string</parameter> |
3516 | 3517 | </entry> |
3517 | | - <entry><literal>btrim(E'\\000trim\\000'::bytea, E'\\000'::bytea)</literal></entry> |
| 3518 | + <entry><literal>btrim(E'\\000trim\\001'::bytea, E'\\000\\001'::bytea)</literal></entry> |
3518 | 3519 | <entry><literal>trim</literal></entry> |
3519 | 3520 | </row> |
3520 | 3521 |
|
|
0 commit comments