Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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: libpq-winsock-errno.patch
Description: application/octet-stream (4.0 KB)

Responses

pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group