Skip to content

Commit ad23adc

Browse files
committed
doc: improve PG 12 to_timestamp()/to_date() wording
1 parent 3454738 commit ad23adc

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

doc/src/sgml/func.sgml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6388,7 +6388,7 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
63886388

63896389
<listitem>
63906390
<para>
6391-
A separator (a space or a non-letter/non-digit character) in the template string of
6391+
A separator (a space or non-letter/non-digit character) in the template string of
63926392
<function>to_timestamp</function> and <function>to_date</function>
63936393
matches any single separator in the input string or is skipped,
63946394
unless the <literal>FX</literal> option is used.
@@ -6399,22 +6399,22 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
63996399
exceeds the number of separators in the template.
64006400
</para>
64016401
<para>
6402-
If <literal>FX</literal> is specified, separator in template string
6403-
matches to exactly one character in input string. Notice we don't insist
6404-
input string character to be the same as template string separator.
6402+
If <literal>FX</literal> is specified, a separator in the template string
6403+
matches exactly one character in input string. Notice we don't insist the
6404+
input string character be the same as the template string separator.
64056405
For example, <literal>to_timestamp('2000/JUN', 'FXYYYY MON')</literal>
64066406
works, but <literal>to_timestamp('2000/JUN', 'FXYYYY&nbsp;&nbsp;MON')</literal>
6407-
returns an error because a space second template string space consumed
6408-
letter <literal>J</literal> from the input string.
6407+
returns an error because the second template string space is consumed
6408+
by the letter <literal>J</literal> in the input string.
64096409
</para>
64106410
</listitem>
64116411

64126412
<listitem>
64136413
<para>
6414-
<literal>TZH</literal> template pattern can match a signed number.
6415-
Without the <literal>FX</literal> option, it may lead to ambiguity in
6414+
A <literal>TZH</literal> template pattern can match a signed number.
6415+
Without the <literal>FX</literal> option, it can lead to ambiguity in
64166416
interpretation of the minus sign, which can also be interpreted as a separator.
6417-
This ambiguity is resolved as follows. If the number of separators before
6417+
This ambiguity is resolved as follows: If the number of separators before
64186418
<literal>TZH</literal> in the template string is less than the number of
64196419
separators before the minus sign in the input string, the minus sign
64206420
is interpreted as part of <literal>TZH</literal>.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy