pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPg JDBC3 driver and savepoints
2+ messages / 2 participants
[nested] [flat]
* Pg JDBC3 driver and savepoints
@ 2008-02-01 16:51 Matt Chambers <chambers@imageworks.com>
2008-02-01 20:37 ` Re: Pg JDBC3 driver and savepoints Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 2+ messages in thread
From: Matt Chambers @ 2008-02-01 16:51 UTC (permalink / raw)
To: pgsql-jdbc
Has anyone here used the Spring Framework and JDBC template and nested
transactions? The documentation for Spring claims that if the JDBC
driver supports save points then it would use them in particular
situations, for example when you marked a method as a nested
transaction. I know postgres supports save points and that I can
manually save point, but the spring framework is not detecting the
driver supports save points. Is there some savepoint interface that has
to be implemented?
--
-Matt
<http://twiki.spimageworks.com/twiki/bin/view/Software/CueDevelopment;
<http://twiki.spimageworks.com/twiki/bin/view/Software/MiddleTier;
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Pg JDBC3 driver and savepoints
2008-02-01 16:51 Pg JDBC3 driver and savepoints Matt Chambers <chambers@imageworks.com>
@ 2008-02-01 20:37 ` Kris Jurka <books@ejurka.com>
0 siblings, 0 replies; 2+ messages in thread
From: Kris Jurka @ 2008-02-01 20:37 UTC (permalink / raw)
To: Matt Chambers <chambers@imageworks.com>; +Cc: pgsql-jdbc
On Fri, 1 Feb 2008, Matt Chambers wrote:
> Has anyone here used the Spring Framework and JDBC template and nested
> transactions? The documentation for Spring claims that if the JDBC driver
> supports save points then it would use them in particular situations, for
> example when you marked a method as a nested transaction. I know postgres
> supports save points and that I can manually save point, but the spring
> framework is not detecting the driver supports save points. Is there some
> savepoint interface that has to be implemented?
>
I would guess Spring would use DatabaseMetaData.supportsSavepoints() to
determine if it can use savepoints. Our implementation of that says,
"return connection.haveMinimumServerVersion("8.0");", so as long as you've
got a 8.0+ server it should work. For more details you'd have to ask the
Spring people.
Kris Jurka
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-02-01 20:37 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-02-01 16:51 Pg JDBC3 driver and savepoints Matt Chambers <chambers@imageworks.com>
2008-02-01 20:37 ` Kris Jurka <books@ejurka.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