|
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>
|
|
2218 | 2219 | <parameter>characters</parameter> (a space by default) from the end of
|
2219 | 2220 | <parameter>string</parameter>
|
2220 | 2221 | </entry>
|
2221 |
| - <entry><literal>rtrim('trimxxxx', 'x')</literal></entry> |
2222 |
| - <entry><literal>trim</literal></entry> |
| 2222 | + <entry><literal>rtrim('testxxzx', 'xyz')</literal></entry> |
| 2223 | + <entry><literal>test</literal></entry> |
2223 | 2224 | </row>
|
2224 | 2225 |
|
2225 | 2226 | <row>
|
@@ -3484,11 +3485,11 @@ SELECT format('Testing %3$s, %2$s, %s', 'one', 'two', 'three');
|
3484 | 3485 | </entry>
|
3485 | 3486 | <entry><type>bytea</type></entry>
|
3486 | 3487 | <entry>
|
3487 |
| - Remove the longest string containing only the bytes in |
| 3488 | + Remove the longest string containing only bytes appearing in |
3488 | 3489 | <parameter>bytes</parameter> from the start
|
3489 | 3490 | and end of <parameter>string</parameter>
|
3490 | 3491 | </entry>
|
3491 |
| - <entry><literal>trim(E'\\000'::bytea from E'\\000Tom\\000'::bytea)</literal></entry> |
| 3492 | + <entry><literal>trim(E'\\000\\001'::bytea from E'\\000Tom\\001'::bytea)</literal></entry> |
3492 | 3493 | <entry><literal>Tom</literal></entry>
|
3493 | 3494 | </row>
|
3494 | 3495 | </tbody>
|
@@ -3527,11 +3528,11 @@ SELECT format('Testing %3$s, %2$s, %s', 'one', 'two', 'three');
|
3527 | 3528 | </entry>
|
3528 | 3529 | <entry><type>bytea</type></entry>
|
3529 | 3530 | <entry>
|
3530 |
| - Remove the longest string consisting only of bytes |
3531 |
| - in <parameter>bytes</parameter> from the start and end of |
| 3531 | + Remove the longest string containing only bytes appearing in |
| 3532 | + <parameter>bytes</parameter> from the start and end of |
3532 | 3533 | <parameter>string</parameter>
|
3533 | 3534 | </entry>
|
3534 |
| - <entry><literal>btrim(E'\\000trim\\000'::bytea, E'\\000'::bytea)</literal></entry> |
| 3535 | + <entry><literal>btrim(E'\\000trim\\001'::bytea, E'\\000\\001'::bytea)</literal></entry> |
3535 | 3536 | <entry><literal>trim</literal></entry>
|
3536 | 3537 | </row>
|
3537 | 3538 |
|
|
0 commit comments