Commit 439cf8e6 authored by Michael Meskes's avatar Michael Meskes

Do not try to find local timezone in DecodeDateTime() because the

result is not used anyway. This also fixes Vista's build problems.
parent a8d539f1
...@@ -2194,8 +2194,8 @@ Thu, 10 May 09:42:42 CEST 2007 ...@@ -2194,8 +2194,8 @@ Thu, 10 May 09:42:42 CEST 2007
- Synced parser and keyword list. - Synced parser and keyword list.
- Renamed update test so it hopefully runs on Vista. - Renamed update test so it hopefully runs on Vista.
Th, 17 May 2007 22:03:40 +0200 Sun, 20 May 2007 22:01:11 +0200
- Removed mktime() call to hopefully get rid of some compatibility - Do not try to find local timezone in DecodeDateTime() because the
problems. result is not used anyway. This also fixes Vista's build problems.
- Set ecpg version to 4.3.1. - Set ecpg version to 4.3.1.
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt_common.c,v 1.38 2007/05/20 11:30:30 meskes Exp $ */ /* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt_common.c,v 1.39 2007/05/21 07:04:00 meskes Exp $ */
#include "postgres_fe.h" #include "postgres_fe.h"
...@@ -2528,20 +2528,12 @@ DecodeDateTime(char **field, int *ftype, int nf, ...@@ -2528,20 +2528,12 @@ DecodeDateTime(char **field, int *ftype, int nf,
if (tm->tm_mday < 1 || tm->tm_mday > day_tab[isleap(tm->tm_year)][tm->tm_mon - 1]) if (tm->tm_mday < 1 || tm->tm_mday > day_tab[isleap(tm->tm_year)][tm->tm_mon - 1])
return -1; return -1;
/* timezone not specified? then find local timezone if possible */ /* backend tried to find local timezone here
if ((fmask & DTK_DATE_M) == DTK_DATE_M && tzp != NULL && !(fmask & DTK_M(TZ))) * but we don't use the result afterwards anyway
{ * so we only check for this error:
/* * daylight savings time modifier but no standard timezone? */
* daylight savings time modifier but no standard timezone? then if ((fmask & DTK_DATE_M) == DTK_DATE_M && tzp != NULL && !(fmask & DTK_M(TZ)) && (fmask & DTK_M(DTZMOD)))
* error
*/
if (fmask & DTK_M(DTZMOD))
return -1; return -1;
/* test to see if this is the reason for the error on Vista
* doesn't seem to be used anyway
* *tzp = DetermineLocalTimeZone(tm); */
}
} }
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment