From: Olivier Jeannet <jeannet@montrouge.tt.slb.com>
To: Peter Mount <petermount@maidstone.gov.uk>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: bytea not recognized by JDBC (7.0.2)
Date: Thu, 30 Nov 2000 10:54:43 +0100
Message-ID: <3A2623E3.66A73425@montrouge.tt.slb.com> (raw)
References: <1B3D5E532D18D311861A00600865478CF1B5E1@exchange1.nt.maidstone.gov.uk>
Peter Mount wrote:
> > How can I select a "bytea" field ?
>
> getBytes() should work.
Can you be more precise please ?
As I get an error from the JDBC driver doing the select, on what variable
should I use getBytes() ?
> > Is this a bug of the JDBC driver (or a not implemented feature) ?
>
> No not quite. getObject() currently doesn't know about bytea, so it's
> passing it on to the Serializable code which is then failing.
And what is the solution or work around ?
Regards,
--
Olivier Jeannet - e-Payment solutions
I prefer not running 32 bit extensions for a 16 bit patch to an 8 bit
operating system originally coded for a 4 bit microprocessor, written
by a 2 bit company, that can't stand 1 bit of competition.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: jeannet@montrouge.tt.slb.com, petermount@maidstone.gov.uk
Subject: Re: bytea not recognized by JDBC (7.0.2)
In-Reply-To: <3A2623E3.66A73425@montrouge.tt.slb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox