Re: Max size for bytea type - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Max size for bytea type
Date
Msg-id Pine.BSO.4.64.0702011328430.23261@leary2.csoft.net
Whole thread Raw
In response to Re: Max size for bytea type  ("Do, Leon \(Leon\)" <leondo@alcatel-lucent.com>)
Responses Re: Max size for bytea type  ("Do, Leon \(Leon\)" <leondo@alcatel-lucent.com>)
Re: Max size for bytea type  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc

On Mon, 22 Jan 2007, Do, Leon (Leon) wrote:

> Sorry, it is my mistake.   It is wrong data type.
>

Still there is a TODO item here.  The driver shouldn't bail out with an
ArrayIndexOutOfBoundsException.  It might be best to fail immediately for
a getBytes call on something that isn't bytea data.  It's conceivable that
you there is bytea escaped data in a text field, but really, what are the
odds (and use cases) of that?

Kris Jurka


pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Synthesize support for Statement.getGeneratedKeys()?
Next
From: Miroslav Šulc
Date:
Subject: JDBC and arrays