libpq win32-native errno fix

From: "Dmitry Yurtaev" <dmitry(at)channel4(dot)ru>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: libpq win32-native errno fix
Date: 2001-07-17 10:19:47
Message-ID: 004701c10eaa$02561670$0107a8c0@SULACO
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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

Attachment Content-Type Size
libpq-winsock-errno.patch application/octet-stream 4.0 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-07-17 11:53:50 Re: libpq win32-native errno fix
Previous Message Tom Lane 2001-07-16 20:30:59 Re: Clear out the reminants of EXTEND INDEX