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

Commitbcd488d

Browse files
author
Thomas G. Lockhart
committed
Change rules for interpreting date/time input to disallow 1 and 3 character
years. Rejects dates like '0.085', which were accepted previously.Minor mods of ODBC markup.
1 parentf05ac97 commitbcd488d

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

‎doc/src/sgml/datetime.sgml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.6 2000/02/02 16:21:06 thomas Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.7 2000/03/29 03:57:10 thomas Exp $
33
Date/time details
44

55
$Log: datetime.sgml,v $
6+
Revision 2.7 2000/03/29 03:57:10 thomas
7+
Change rules for interpreting date/time input to disallow 1 and 3 character
8+
years. Rejects dates like '0.085', which were accepted previously.
9+
Minor mods of ODBC markup.
10+
611
Revision 2.6 2000/02/02 16:21:06 thomas
712
Add detailed information on Australian time zones.
813

@@ -578,7 +583,7 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
578583

579584
<step>
580585
<para>
581-
Iflonger than two digits, then interpret as a year.
586+
Iffour or more digits, then interpret as a year.
582587
</para>
583588
</step>
584589

@@ -605,7 +610,13 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
605610

606611
<step>
607612
<para>
608-
Otherwise, interpret as a year.
613+
If two digits or four or more digits, then interpret as a year.
614+
</para>
615+
</step>
616+
617+
<step>
618+
<para>
619+
Otherwise, throw an error.
609620
</para>
610621
</step>
611622
</substeps>
@@ -629,10 +640,10 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
629640
<tip>
630641
<para>
631642
Gregorian years 1-99AD may be entered by using 4 digits with leading
632-
zeros (e.g. 0099 is 99AD).Three digits are also accepted as a
633-
year under most circumstances, though depending on position the
634-
numeric string may
635-
be interpreted as doy instead.
643+
zeros (e.g. 0099 is 99AD).Previous versions of
644+
<productname>Postgres</productname> accepted years with three
645+
digits and with single digits, but as of v7.0 the rules have
646+
been tightened up to reduce the possibility of ambiguity.
636647
</para>
637648
</tip>
638649
</para>

‎doc/src/sgml/odbc.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,8 @@ InstallDir = /opt/applix/axdata/axshlib
692692
Typically <productname>Applix</productname> is installed in
693693
<filename>/opt</filename> so the full path would be
694694
<filename>/opt/applix/axdata/axshlib/lib</filename>,
695-
but if you have installedapplix somewhere else then
696-
change the path accordingly.
695+
but if you have installed<productname>Applix</productname>
696+
somewhere else thenchange the path accordingly.
697697
</para>
698698
</step>
699699
</substeps>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp