Re: statement caching patch from Laszlo Hornyak for review - Mailing list pgsql-jdbc

From Laszlo Hornyak
Subject Re: statement caching patch from Laszlo Hornyak for review
Date
Msg-id 531718e20708032347q87bf7efs11e748cbb61847aa@mail.gmail.com
Whole thread Raw
In response to Re: statement caching patch from Laszlo Hornyak for review  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: statement caching patch from Laszlo Hornyak for review  (Paul van den Bogaard <Paul.Vandenbogaard@Sun.COM>)
List pgsql-jdbc
Hi!

I think, we can say that such external wrappers already exist, e.g. is commons-dbcp with its DataSource implementation.
If you wish to use the JDBC drivers datasource, or don't wat to use DataSource, only a JDBC Connection, is there any other choice than writing code to the JDBC driver code?

On 8/4/07, Oliver Jowett <oliver@opencloud.com> wrote:
Dave Cramer wrote:
> Kris, Oliver,
>
> Laszlo is working on all of your recommendations, thanks for taking the
> time to review this.

Before he throws lots more work at this -- if you are adding a wrapping
statement object (removing the dependency on the PG driver's statement
implementation), is there anything else which that ties the
implementation to the postgresql driver code?

Seems to me that to get correct behaviour you need to wrap Statement
which also means you have to wrap Connection and so on .. at which point
the question is, does this need to be integrated with the driver at all
or can it be implemented as a separate module?

-O



--
<signature>
  <name>
    <firstName>László</firstName>
    <lastName>Hornyák</lastName>
  </name>
</signature>

pgsql-jdbc by date:

Previous
From: Albert László-Róbert
Date:
Subject: Re: PSQLException: Too many update results were returned.
Next
From: "L. Rahyen"
Date:
Subject: Strange crashes in JDBC code in multithreaded application.