i've spotted a following problem using DBD::Pg under win32. winsock
Bruce Momjian <bruce@momjian.us>
i've spotted a following problem using DBD::Pg under win32. winsock functions do not set errno, so some normal conditions are treated as fatal errors. e.g. fetching large tuples fails, as at some point recv() returns EWOULDBLOCK. here's a patch, which replaces errno with WSAGetLastError(). i've tried to to affect non-win32 code. Dmitry Yurtaev
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-connect.c | modified | +9 −10 |
| src/interfaces/libpq/fe-exec.c | modified | +7 −3 |
| src/interfaces/libpq/fe-misc.c | modified | +5 −5 |
| src/interfaces/libpq/win32.h | modified | +15 −0 |