pgsql/src/interfaces/jdbc/org/postgresql/large ...

From: Bruce Momjian - CVS <momjian(at)hub(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/interfaces/jdbc/org/postgresql/large ...
Date: 2001-05-16 03:29:02
Message-ID: 200105160329.f4G3T2b80176@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /home/projects/pgsql/cvsroot
Module name: pgsql
Changes by: momjian(at)hub(dot)org 01/05/15 23:29:01

Modified files:
src/interfaces/jdbc/org/postgresql/largeobject:
BlobInputStream.java

Log message:
The current implementation of BlobInputStream does
not properly handle 8-bit unsigned data as it blindly
casts the byte to an int, which java most helpfully
promotes to a signed type. This causes problems when
you can only return -1 to indicated EOF.

The following patch fixes the bug and has been tested
locally on image data.

Chad David

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian - CVS 2001-05-16 03:40:25 pgsql/src/interfaces/jdbc/org/postgresql/jdbc2 ...
Previous Message Vince Vielhaber 2001-05-16 02:35:52 [WEBMASTER] 'www/html mirrors.html'