ResultSet.updateBinaryStream bug: input stream is null

From: Tõnu Põld <Tonu(dot)Pold(at)andmevara(dot)ee>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: ResultSet.updateBinaryStream bug: input stream is null
Date: 2003-04-04 07:26:25
Message-ID: 0ED240B5D5CBC44CAD8ECD2061AF31F203B2E4@tuvi.andmevara.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi,

I am trying to use updateBinaryStream method, but it gives an error on ResultSet.insertRow statement.
The error message says: Input Stream is null.

So I looked into JDBC driver sources -- to find where this error appears.
I think there is a bug in org.postgresql.jdbc2.AbstractJdbc2ResultSet class.
The line 787 in AbstractJdbc2ResultSet.java file is:

byte[] theData = null;

I think it should be:

byte[] theData = new byte[length];

After I changed the line and recompiled the classes this error disapeared.

Could someone please fix this error?

Is this list the right place to send BUG reports? Or are there any other BUG databse/list for this?

Regards,
Tõnu Põld

Browse pgsql-jdbc by date

  From Date Subject
Next Message Csaba Nagy 2003-04-04 09:15:28 Re: Jdbc3PoolingDataSource default auto commit is false
Previous Message snpe 2003-04-04 01:23:56 NetBeans (3.5 Dev), Postgresql 7.4dev jdbc