diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-04-05 02:51:41 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-04-05 02:51:41 +0000 |
commit | 3ded1cc530537c46406925fc6d8308566d636efc (patch) | |
tree | 302b4778ea8599bea1c7b6f36a9d0c94a972321c /src | |
parent | eda9d69d6c6509eed028b118c79140abe8bb2fb5 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/adt/dt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/dt.c b/src/backend/utils/adt/dt.c index 28f31a14725..9b49ce5bcdc 100644 --- a/src/backend/utils/adt/dt.c +++ b/src/backend/utils/adt/dt.c @@ -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); |