From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>

Subject: [HACKERS] Fix for European dates

This apparently fixes the European date reading problem reported
by several (European) bleeding edge adopters. I tried a few test
cases and it doesn't break the non-EuroDate cases in my test suite.
This commit is contained in:
Marc G. Fournier 1997-04-05 02:51:41 +00:00
parent eda9d69d6c
commit 3ded1cc530
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.14 1997/04/02 18:33:32 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/Attic/dt.c,v 1.15 1997/04/05 02:51:41 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@ -2165,7 +2165,7 @@ printf( "DecodeNumber- match %d (%s) as month\n", val, str);
/* no year and EuroDates enabled? then could be day */
} else if ((EuroDates || (fmask & DTK_M(MONTH)))
&& (! ((fmask & DTK_M(YEAR)) && (fmask & DTK_M(DAY))))
&& (!(fmask & DTK_M(YEAR)) && !(fmask & DTK_M(DAY)))
&& ((val >= 1) && (val <= 31))) {
#ifdef DATEDEBUG
printf( "DecodeNumber- match %d (%s) as day\n", val, str);