Re: bytea not recognized by JDBC (7.0.2)

From: Olivier Jeannet <jeannet(at)montrouge(dot)tt(dot)slb(dot)com>
To: Peter Mount <petermount(at)maidstone(dot)gov(dot)uk>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: bytea not recognized by JDBC (7.0.2)
Date: 2000-11-30 09:54:43
Message-ID: 3A2623E3.66A73425@montrouge.tt.slb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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.

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message npdavis 2000-11-30 19:01:10 server side interfaces
Previous Message Constantin Teodorescu 2000-11-30 07:45:43 Re: PgAccess is available on Mac OS X