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-16 11:10:08
Message-ID: 003801c10de7$e0caad30$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 in 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

Browse pgsql-patches by date

  From Date Subject
Next Message Martijn van Oosterhout 2001-07-16 11:50:30 Re: Patch to add support for partial indices
Previous Message Martijn van Oosterhout 2001-07-16 10:00:01 Clear out the reminants of EXTEND INDEX