found a bug with binary objects - Mailing list pgsql-jdbc

From Nic Ferrier
Subject found a bug with binary objects
Date
Msg-id 8765u1y25u.fsf_-_@pooh-sticks-bridge.tapsellferrier.co.uk
Whole thread Raw
In response to Re: streaming result sets: progress  (Nic Ferrier <nferrier@tapsellferrier.co.uk>)
List pgsql-jdbc
It seems that the check functions for binary objects are wrong.

byte[] getBytes()

checks only for VARBINARY and not BINARY as well. Sun's javadoc says
the following:

>>>>
byte[] getBytes()
Gets the value of a JDBC BINARY or VARBINARY parameter as an
array of byte values in the Java programming language.
<<<<


I've got a fix that I will submit... trouble is it's all wrapped up
in the "nic patch" that contains the stuff for dealing with result
sets from functions and the stuff for fetch size result sets (and the
general re-working of the pgsql execution path).


I now aim to get this up for tommorow (wednesday) night.



Nic

pgsql-jdbc by date:

Previous
From: Fernando Nasser
Date:
Subject: Re: build patch
Next
From: Aaron Mulder
Date:
Subject: Re: PooledConnectionImpl problem