found a bug with binary objects

From: Nic Ferrier <nferrier(at)tapsellferrier(dot)co(dot)uk>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: found a bug with binary objects
Date: 2002-12-10 21:50:05
Message-ID: 8765u1y25u.fsf_-_@pooh-sticks-bridge.tapsellferrier.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Aaron Mulder 2002-12-10 22:47:00 Re: PooledConnectionImpl problem
Previous Message Fernando Nasser 2002-12-10 18:56:34 Re: build patch