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

Commitda11a14

Browse files
committed
Doc: fix bogus to_date() examples.
November doesn't have 31 days. Remarkably, this thinkohas escaped detection since commit3f19987.Noted by Y. Saburov.Discussion:https://postgr.es/m/171276122213.681.531905738590773705@wrigleys.postgresql.org
1 parentb714bc4 commitda11a14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎doc/src/sgml/func.sgml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7814,11 +7814,11 @@ SELECT regexp_match('abc01234xyz', '(?:(.*?)(\d+)(.*)){1,1}');
78147814
use some non-digit character or template after <literal>YYYY</literal>,
78157815
otherwise the year is always interpreted as 4 digits. For example
78167816
(with the year 20000):
7817-
<literal>to_date('200001131', 'YYYYMMDD')</literal> will be
7817+
<literal>to_date('200001130', 'YYYYMMDD')</literal> will be
78187818
interpreted as a 4-digit year; instead use a non-digit
78197819
separator after the year, like
7820-
<literal>to_date('20000-1131', 'YYYY-MMDD')</literal> or
7821-
<literal>to_date('20000Nov31', 'YYYYMonDD')</literal>.
7820+
<literal>to_date('20000-1130', 'YYYY-MMDD')</literal> or
7821+
<literal>to_date('20000Nov30', 'YYYYMonDD')</literal>.
78227822
</para>
78237823
</listitem>
78247824

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp