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.
This commit is contained in:
Thomas G. Lockhart 2000-03-29 03:57:11 +00:00
parent f05ac972c6
commit bcd488d0ce
2 changed files with 20 additions and 9 deletions

View 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 Date/time details
$Log: datetime.sgml,v $ $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 Revision 2.6 2000/02/02 16:21:06 thomas
Add detailed information on Australian time zones. 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> <step>
<para> <para>
If longer than two digits, then interpret as a year. If four or more digits, then interpret as a year.
</para> </para>
</step> </step>
@ -605,7 +610,13 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
<step> <step>
<para> <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> </para>
</step> </step>
</substeps> </substeps>
@ -629,10 +640,10 @@ Finish initial markup of cvs.sgml, and include it in the programmer's guide
<tip> <tip>
<para> <para>
Gregorian years 1-99AD may be entered by using 4 digits with leading 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 zeros (e.g. 0099 is 99AD). Previous versions of
year under most circumstances, though depending on position the <productname>Postgres</productname> accepted years with three
numeric string may digits and with single digits, but as of v7.0 the rules have
be interpreted as doy instead. been tightened up to reduce the possibility of ambiguity.
</para> </para>
</tip> </tip>
</para> </para>

View File

@ -692,8 +692,8 @@ InstallDir = /opt/applix/axdata/axshlib
Typically <productname>Applix</productname> is installed in Typically <productname>Applix</productname> is installed in
<filename>/opt</filename> so the full path would be <filename>/opt</filename> so the full path would be
<filename>/opt/applix/axdata/axshlib/lib</filename>, <filename>/opt/applix/axdata/axshlib/lib</filename>,
but if you have installed applix somewhere else then but if you have installed <productname>Applix</productname>
change the path accordingly. somewhere else then change the path accordingly.
</para> </para>
</step> </step>
</substeps> </substeps>