ResultSet.updateBinaryStream bug: input stream is null - Mailing list pgsql-jdbc

From Tõnu Põld
Subject ResultSet.updateBinaryStream bug: input stream is null
Date
Msg-id 0ED240B5D5CBC44CAD8ECD2061AF31F203B2E4@tuvi.andmevara.ee
Whole thread Raw
List 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


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: fireConnectionFatalError never called
Next
From: Csaba Nagy
Date:
Subject: Re: Jdbc3PoolingDataSource default auto commit is false