Index: src/interfaces/libpq/fe-exec.c =================================================================== RCS file: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v retrieving revision 1.170 diff -c -c -r1.170 fe-exec.c *** src/interfaces/libpq/fe-exec.c 2 Jul 2005 17:01:54 -0000 1.170 --- src/interfaces/libpq/fe-exec.c 12 Aug 2005 23:58:16 -0000 *************** *** 2166,2172 **** #endif result = strtoul(res->cmdStatus + 7, &endptr, 10); ! if (!endptr || (*endptr != ' ' && *endptr != '\0') || errno == ERANGE) return InvalidOid; else return (Oid) result; --- 2166,2180 ---- #endif result = strtoul(res->cmdStatus + 7, &endptr, 10); ! if (!endptr || (*endptr != ' ' && *endptr != '\0') ! #ifndef WIN32 ! /* ! * On WIN32, errno is not thread-safe and GetLastError() isn't set by ! * strtoul(), so we can't check on this platform. ! */ ! || errno == ERANGE ! #endif ! ) return InvalidOid; else return (Oid) result;