From bcd488d0ce351dfc50b54320abe186300816651a Mon Sep 17 00:00:00 2001
From: "Thomas G. Lockhart" <lockhart@fourpalms.org>
Date: Wed, 29 Mar 2000 03:57:11 +0000
Subject: [PATCH] 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.

---
 doc/src/sgml/datetime.sgml | 25 ++++++++++++++++++-------
 doc/src/sgml/odbc.sgml     |  4 ++--
 2 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/doc/src/sgml/datetime.sgml b/doc/src/sgml/datetime.sgml
index 77c1cac55d7..f89f2be23a1 100644
--- a/doc/src/sgml/datetime.sgml
+++ b/doc/src/sgml/datetime.sgml
@@ -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>
diff --git a/doc/src/sgml/odbc.sgml b/doc/src/sgml/odbc.sgml
index 7edc130dc59..783694f4f2d 100644
--- a/doc/src/sgml/odbc.sgml
+++ b/doc/src/sgml/odbc.sgml
@@ -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>
-- 
GitLab