On Wed, May 09, 2007 at 12:46:52PM +0100, Dave Page wrote: > >Unfortunately I do not have access to a Vista system I could use to test > >and track this one down. > > I'm happy to run any tests you like.
Dave, could you please apply this small patch to pgtypeslib/datetime.c. I still have no clue where the error code is comming from and I'm trying to narrow it down a bit. Thanks. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED] Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!
--- pgtypeslib/datetime.c 2006-10-04 09:37:59.000000000 +0200 +++ datetime.c 2007-05-15 12:31:56.000000000 +0200 @@ -74,6 +74,7 @@ errno = PGTYPES_DATE_BAD_DATE; return INT_MIN; } + printf("1: errno = %d\n", errno); if (ParseDateTime(str, lowstr, field, ftype, MAXDATEFIELDS, &nf, ptr) != 0 || DecodeDateTime(field, ftype, nf, &dtype, tm, &fsec, &tzp, EuroDates) != 0) @@ -81,6 +82,7 @@ errno = PGTYPES_DATE_BAD_DATE; return INT_MIN; } + printf("2: errno = %d\n", errno); switch (dtype) { @@ -95,8 +97,10 @@ errno = PGTYPES_DATE_BAD_DATE; return INT_MIN; } + printf("3: errno = %d\n", errno); dDate = (date2j(tm->tm_year, tm->tm_mon, tm->tm_mday) - date2j(2000, 1, 1)); + printf("4: errno = %d\n", errno); return dDate; }
---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org