Change rules for interpreting date/time input to disallow 1 and 3 character
authorThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 29 Mar 2000 03:57:11 +0000 (03:57 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 29 Mar 2000 03:57:11 +0000 (03:57 +0000)
 years. Rejects dates like '0.085', which were accepted previously.
Minor mods of ODBC markup.

doc/src/sgml/datetime.sgml
doc/src/sgml/odbc.sgml

index 77c1cac55d7534cedd59dcc8cf97b81e3e565a84..f89f2be23a11ed32423cfef3f18fdcb79f96103b 100644 (file)
@@ -1,8 +1,13 @@
 <!--
-$Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.6 2000/02/02 16:21:06 thomas Exp $
+$Header: /cvsroot/pgsql/doc/src/sgml/datetime.sgml,v 2.7 2000/03/29 03:57:10 thomas Exp $
 Date/time details
 
 $Log: datetime.sgml,v $
+Revision 2.7  2000/03/29 03:57:10  thomas
+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.
+
 Revision 2.6  2000/02/02 16:21:06  thomas
 Add detailed information on Australian time zones.
 
@@ -578,7 +583,7 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
       
       <step>
        <para>
-   If longer than two digits, then interpret as a year.
+   If four or more digits, then interpret as a year.
        </para>
       </step>
 
@@ -605,7 +610,13 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
 
       <step>
        <para>
-   Otherwise, interpret as a year.
+   If two digits or four or more digits, then interpret as a year.
+       </para>
+      </step>
+
+      <step>
+       <para>
+   Otherwise, throw an error.
        </para>
       </step>
      </substeps>
@@ -629,10 +640,10 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
       <tip>
        <para>
    Gregorian years 1-99AD may be entered by using 4 digits with leading
-   zeros (e.g. 0099 is 99AD). Three digits are also accepted as a
-   year under most circumstances, though depending on position the
-   numeric string may
-   be interpreted as doy instead.
+   zeros (e.g. 0099 is 99AD). Previous versions of
+   <productname>Postgres</productname> accepted years with three
+   digits and with single digits, but as of v7.0 the rules have
+   been tightened up to reduce the possibility of ambiguity.
        </para>
       </tip>
      </para>
index 7edc130dc5933362f85a77b6b5708b1b446d711a..783694f4f2d86ffbb257d42bc9a9077f9d6847ba 100644 (file)
@@ -692,8 +692,8 @@ InstallDir = /opt/applix/axdata/axshlib
     Typically <productname>Applix</productname> is installed in
     <filename>/opt</filename> so the full path would be
     <filename>/opt/applix/axdata/axshlib/lib</filename>,
-    but if you have installed applix somewhere else then
-    change the path accordingly.
+    but if you have installed <productname>Applix</productname>
+    somewhere else then change the path accordingly.
    </para>
        </step>
       </substeps>