Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitad23adc

Browse files
committed
doc: improve PG 12 to_timestamp()/to_date() wording
1 parent3454738 commitad23adc

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 oranon-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-
matchestoexactly one character in input string. Notice we don't insist
6404-
input string charactertobe the same as template string separator.
6402+
If <literal>FX</literal> is specified,aseparator 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 becausea spacesecond template string space consumed
6408-
letter <literal>J</literal>from the input string.
6407+
returns an error becausethesecond template string space is consumed
6408+
by theletter <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, itmay lead to ambiguity in
6414+
A<literal>TZH</literal> template pattern can match a signed number.
6415+
Without the <literal>FX</literal> option, itcan 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)

[8]ページ先頭

©2009-2025 Movatter.jp