|
1321 | 1321 | </entry>
|
1322 | 1322 | <entry><type>text</type></entry>
|
1323 | 1323 | <entry>
|
1324 |
| - Remove the longest string containing only the |
| 1324 | + Remove the longest string containing only characters from |
1325 | 1325 | <parameter>characters</parameter> (a space by default) from the
|
1326 |
| - start/end/both ends of the <parameter>string</parameter> |
| 1326 | + start, end, or both ends (<literal>both</> is the default) |
| 1327 | + of <parameter>string</parameter> |
1327 | 1328 | </entry>
|
1328 |
| - <entry><literal>trim(both 'x' from 'xTomxx')</literal></entry> |
| 1329 | + <entry><literal>trim(both 'xyz' from 'yxTomxx')</literal></entry> |
1329 | 1330 | <entry><literal>Tom</literal></entry>
|
1330 | 1331 | </row>
|
1331 | 1332 |
|
|
1334 | 1335 | <literal><function>trim(<optional>leading | trailing
|
1335 | 1336 | | both</optional> <optional>from</optional>
|
1336 | 1337 | <parameter>string</parameter>
|
1337 |
| - <optional><parameter>, characters</parameter></optional> |
| 1338 | + <optional>, <parameter>characters</parameter></optional> |
1338 | 1339 | )</function></literal>
|
1339 | 1340 | </entry>
|
1340 | 1341 | <entry><type>text</type></entry>
|
1341 | 1342 | <entry>
|
1342 |
| - Non-standard version of <function>trim()</> |
| 1343 | + Non-standard syntax for <function>trim()</> |
1343 | 1344 | </entry>
|
1344 |
| - <entry><literal>trim(both from 'xTomxx', 'x')</literal></entry> |
| 1345 | + <entry><literal>trim(both from 'yxTomxx', 'xyz')</literal></entry> |
1345 | 1346 | <entry><literal>Tom</literal></entry>
|
1346 | 1347 | </row>
|
1347 | 1348 |
|
|
1413 | 1414 | in <parameter>characters</parameter> (a space by default)
|
1414 | 1415 | from the start and end of <parameter>string</parameter>
|
1415 | 1416 | </entry>
|
1416 |
| - <entry><literal>btrim('xyxtrimyyx', 'xy')</literal></entry> |
| 1417 | + <entry><literal>btrim('xyxtrimyyx', 'xyz')</literal></entry> |
1417 | 1418 | <entry><literal>trim</literal></entry>
|
1418 | 1419 | </row>
|
1419 | 1420 |
|
|
1682 | 1683 | <parameter>characters</parameter> (a space by default) from the start of
|
1683 | 1684 | <parameter>string</parameter>
|
1684 | 1685 | </entry>
|
1685 |
| - <entry><literal>ltrim('zzzytrim', 'xyz')</literal></entry> |
1686 |
| - <entry><literal>trim</literal></entry> |
| 1686 | + <entry><literal>ltrim('zzzytest', 'xyz')</literal></entry> |
| 1687 | + <entry><literal>test</literal></entry> |
1687 | 1688 | </row>
|
1688 | 1689 |
|
1689 | 1690 | <row>
|
|
1965 | 1966 | <parameter>characters</parameter> (a space by default) from the end of
|
1966 | 1967 | <parameter>string</parameter>
|
1967 | 1968 | </entry>
|
1968 |
| - <entry><literal>rtrim('trimxxxx', 'x')</literal></entry> |
1969 |
| - <entry><literal>trim</literal></entry> |
| 1969 | + <entry><literal>rtrim('testxxzx', 'xyz')</literal></entry> |
| 1970 | + <entry><literal>test</literal></entry> |
1970 | 1971 | </row>
|
1971 | 1972 |
|
1972 | 1973 | <row>
|
@@ -3231,11 +3232,11 @@ SELECT format('Testing %3$s, %2$s, %s', 'one', 'two', 'three');
|
3231 | 3232 | </entry>
|
3232 | 3233 | <entry><type>bytea</type></entry>
|
3233 | 3234 | <entry>
|
3234 |
| - Remove the longest string containing only the bytes in |
| 3235 | + Remove the longest string containing only bytes appearing in |
3235 | 3236 | <parameter>bytes</parameter> from the start
|
3236 | 3237 | and end of <parameter>string</parameter>
|
3237 | 3238 | </entry>
|
3238 |
| - <entry><literal>trim(E'\\000'::bytea from E'\\000Tom\\000'::bytea)</literal></entry> |
| 3239 | + <entry><literal>trim(E'\\000\\001'::bytea from E'\\000Tom\\001'::bytea)</literal></entry> |
3239 | 3240 | <entry><literal>Tom</literal></entry>
|
3240 | 3241 | </row>
|
3241 | 3242 | </tbody>
|
@@ -3274,11 +3275,11 @@ SELECT format('Testing %3$s, %2$s, %s', 'one', 'two', 'three');
|
3274 | 3275 | </entry>
|
3275 | 3276 | <entry><type>bytea</type></entry>
|
3276 | 3277 | <entry>
|
3277 |
| - Remove the longest string consisting only of bytes |
3278 |
| - in <parameter>bytes</parameter> from the start and end of |
| 3278 | + Remove the longest string containing only bytes appearing in |
| 3279 | + <parameter>bytes</parameter> from the start and end of |
3279 | 3280 | <parameter>string</parameter>
|
3280 | 3281 | </entry>
|
3281 |
| - <entry><literal>btrim(E'\\000trim\\000'::bytea, E'\\000'::bytea)</literal></entry> |
| 3282 | + <entry><literal>btrim(E'\\000trim\\001'::bytea, E'\\000\\001'::bytea)</literal></entry> |
3282 | 3283 | <entry><literal>trim</literal></entry>
|
3283 | 3284 | </row>
|
3284 | 3285 |
|
|
0 commit comments