libpq win32-native errno fix - Mailing list pgsql-patches

From Dmitry Yurtaev
Subject libpq win32-native errno fix
Date
Msg-id 003801c10de7$e0caad30$0107a8c0@SULACO
Whole thread Raw
List 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

pgsql-patches by date:

Previous
From: "Neil Conway"
Date:
Subject: Re: [GENERAL] 2 gig file size limit
Next
From: Bruce Momjian
Date:
Subject: Re: Clear out the reminants of EXTEND INDEX