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-16 11:10:08
Message-ID: 003801c10de7$e0caad30$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 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: libpq-winsock-errno.patch
Description: application/octet-stream (4.0 KB)

pgsql-patches by date

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

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