Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group