Hi,

the libpq-function PQfsize() now returns
int instead of short. It looks like, that
this needs some adaption in the backend, 
because now the size of a variable length
field is returned as 65535 instead of -1.

Edmund
-- 
Edmund Mergl          mailto:E.Mergl@bawue.de
Im Haldenhau 9        http://www.bawue.de/~mergl
70565 Stuttgart       fon: +49 711 747503
Germany

Wed, 09 Sep 1998 16:07:05 +0300
Edmund Mergl <E.Mergl@bawue.de>
new return value of PQfsize
Edmund Mergl <E.Mergl@bawue.de> writes:
> the libpq-function PQfsize() now returns int instead of
> short. It looks like, that this needs some adaption in the
> backend, because now the size of a variable length field is
> returned as 65535 instead of -1.

Oops.  That's libpq's bug, not the backend's.

I thought that the rearrangement of libpq's interface
would be a good time to hide the fact that field sizes are
currently restricted to short --- which was visible in the
return type of PQfsize, and nowhere else in libpq's API.

But I guess I forgot to ensure that sign extension would happen
correctly :-(.  Will fix.

			regards, tom lane

Wed, 09 Sep 1998 10:05:42 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] new return value of PQfsize 