From: Markus Schaber <schabios@logi-track.com>
To: pgsql-jdbc@postgresql.org
Cc: Edoardo Ceccarelli <eddy@axa.it>
Subject: Re: blob without largeobject api
Date: Mon, 21 Jun 2004 17:44:26 +0200
Message-ID: <20040621174426.097e55ad@kingfisher.intern.logi-track.com> (raw)
In-Reply-To: <4072A183.6030802@opencloud.com>
References: <40712C3B.4070606@expot.it>
<4071D255.3000504@opencloud.com>
<40729A9A.3060001@axa.it>
<4072A183.6030802@opencloud.com>
Hi, Oliver,
On Wed, 07 Apr 2004 00:24:35 +1200
Oliver Jowett <oliver@opencloud.com> wrote:
> Edoardo Ceccarelli wrote:
> > Tried with a driver downloaded from http://jdbc.postgresql.org/
> >
> > pg74.213.jdbc3.jar
> >
> > the result is always the same:
> > java.lang.ClassCastException: com.caucho.sql.UserConnection
> > on row:
> > LargeObjectManager lom =
> > ((org.postgresql.PGConnection)db).getLargeObjectAPI();
>
> Ok, this means your pooling implementation is not using the postgresql
> driver's PooledConnection to generate the proxy connections to hand
> out, but is implementing them itself (using instances of
> com.caucho.sql.UserConnection, it appears). So you won't be able to
> get at postgresql-specific interfaces with that pooling
> implementation, regardless of what the driver does.
Maybe his pooling implementation provides a method to get to the
underlying "real" connection.
In one of our projects, we had to use this Trick to add the PostGIS
Wrapper Classes to the JDBC Driver.
HTH,
Markus
--
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios@logi-track.com | www.logi-track.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: schabios@logi-track.com, eddy@axa.it
Subject: Re: blob without largeobject api
In-Reply-To: <20040621174426.097e55ad@kingfisher.intern.logi-track.com>
References: <40712C3B.4070606@expot.it> <4071D255.3000504@opencloud.com> <40729A9A.3060001@axa.it> <4072A183.6030802@opencloud.com> <20040621174426.097e55ad@kingfisher.intern.logi-track.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