pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedbytea not recognized by JDBC (7.0.2)
3+ messages / 2 participants
[nested] [flat]
* bytea not recognized by JDBC (7.0.2)
@ 2000-11-28 16:41 Olivier Jeannet <jeannet@montrouge.tt.slb.com>
0 siblings, 0 replies; 3+ messages in thread
From: Olivier Jeannet @ 2000-11-28 16:41 UTC (permalink / raw)
To: pgsql-interfaces
I have a problem with JDBC (postgresql.jar) and Postgres 7.0.2 . The
client is under Windows NT with JDK 1.3, and Postgres is running on
SuSE Linux 6.3 (kernel 2.2.13).
Here is my table :
create table TRANSACTIONS
(
APPLICATION_SOFTWARE_RELEASE bytea not null,
);
I insert a row (using JDBC) with success :
insert into TRANSACTIONS(APPLICATION_SOFTWARE_RELEASE) values('0005');
I select a row (with JDBC) :
select APPLICATION_SOFTWARE_RELEASE from TRANSACTIONS;
and I get the following error :
Error while processing order (select APPLICATION_SOFTWARE_RELEASE from
TRANSACTIONS ) : No class found for bytea.
How can I select a "bytea" field ?
Is there a workaround for this, or a patch ?
Is this a bug of the JDBC driver (or a not implemented feature) ?
I have looked at the mailing-list but didn't find the answer to my
problem.
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* RE: bytea not recognized by JDBC (7.0.2)
@ 2000-11-29 09:16 Peter Mount <petermount@maidstone.gov.uk>
2000-11-30 09:54 ` Re: bytea not recognized by JDBC (7.0.2) Olivier Jeannet <jeannet@montrouge.tt.slb.com>
0 siblings, 1 reply; 3+ messages in thread
From: Peter Mount @ 2000-11-29 09:16 UTC (permalink / raw)
To: 'ojeannet@slb.com' <ojeannet@slb.com>; pgsql-interfaces
--
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount@maidstone.gov.uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council
> -----Original Message-----
> From: Olivier Jeannet [mailto:jeannet@montrouge.tt.slb.com]
> Sent: Tuesday, November 28, 2000 4:42 PM
> To: pgsql-interfaces@postgresql.org
> Subject: [INTERFACES] bytea not recognized by JDBC (7.0.2)
[snip]
> How can I select a "bytea" field ?
getBytes() should work.
> 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.
> I have looked at the mailing-list but didn't find the answer to my
> problem.
Actually I cant remember anyone asking about bytea, which is why it's got
overlooked.
Peter
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: bytea not recognized by JDBC (7.0.2)
2000-11-29 09:16 RE: bytea not recognized by JDBC (7.0.2) Peter Mount <petermount@maidstone.gov.uk>
@ 2000-11-30 09:54 ` Olivier Jeannet <jeannet@montrouge.tt.slb.com>
0 siblings, 0 replies; 3+ messages in thread
From: Olivier Jeannet @ 2000-11-30 09:54 UTC (permalink / raw)
To: Peter Mount <petermount@maidstone.gov.uk>; +Cc: 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.
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2000-11-30 09:54 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-11-28 16:41 bytea not recognized by JDBC (7.0.2) Olivier Jeannet <jeannet@montrouge.tt.slb.com>
2000-11-29 09:16 RE: bytea not recognized by JDBC (7.0.2) Peter Mount <petermount@maidstone.gov.uk>
2000-11-30 09:54 ` Olivier Jeannet <jeannet@montrouge.tt.slb.com>
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